文档

Unity Engine

Unity Engine

SubsystemRegistration

Callback invoked when starting up the runtime. Called before the first scene is loaded.
阅读时间1 分钟最后更新于 17 天前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
SubsystemRegistration = 4

Remarks

For new code, use OnCodeInitializingAttribute instead for better resource pre-allocation timing. For more information, refer to Code reload and the code lifecycle in the manual.
For more information on the execution order of this option relative to the others, refer to RuntimeInitializeOnLoadMethodAttribute.