Navigathena icon indicating copy to clipboard operation
Navigathena copied to clipboard

[FEATURE] Is the execution order of Start and OnEnter reversed at first scene?

Open kaworucloud opened this issue 2 months ago • 0 comments

Feature destription

I found that the execution order in my output is OnEnter -> Start for the first scene, but for other scenes, it's Start -> OnEnter. (The difference is that the first scene is launched by Unity, while the other scenes are launched via GlobalSceneNavigator.Instance.Replace.) Is this a bug? or by design?

And should I avoid using Start and put the initialization code in OnInitialize instead? Does OnInitialize also get called before the first Update, similar to Start?

kaworucloud avatar Nov 10 '25 07:11 kaworucloud