文档

Unity Engine

Unity Engine

AfterSceneLoad

Callback invoked when the first scene's objects are loaded into memory and after Awake has been called.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
AfterSceneLoad = 0

Remarks

At this point active objects can be found with Object.FindObjectsByType. Before this point the first Scene's objects are considered inactive regardless of their serialized active state.
For more info on ordering see RuntimeInitializeOnLoadMethodAttribute.