An initially active, enabled component finishes Start, then another component calls Cycle…

from MonoBehaviour lifecycle
Unity 6.6 beginner 2 min

An initially active, enabled component finishes Start, then another component calls Cycle once. What is logged?

csharp
using UnityEngine;

public sealed class ReenableTrace : MonoBehaviour
{
    private void Awake() => Debug.Log("A");
    private void OnEnable() => Debug.Log("E");
    private void Start() => Debug.Log("S");
    private void OnDisable() => Debug.Log("D");

    public void Cycle()
    {
        enabled = false;
        enabled = true;
    }
}
Open in playground
Report an error