Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SubsystemRegistration

Callback invoked when starting up the runtime. Called before the first scene is loaded.
Read time 1 minuteLast updated 7 days ago

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.