Documentation

Unity Engine

Download Unity

Unity Engine

RuntimeInitializeOnLoadMethodAttribute

Use the RuntimeInitializeLoadType to control when the callback is invoked.
Read time 1 minuteLast updated 7 hours ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ScriptingModule

RuntimeInitializeOnLoadMethodAttribute()

Use the RuntimeInitializeLoadType to control when the callback is invoked.
public RuntimeInitializeOnLoadMethodAttribute()

Remarks

RuntimeInitializeOnLoadMethodAttribute(RuntimeInitializeLoadType)

Use the RuntimeInitializeLoadType to control when the callback is invoked.
public RuntimeInitializeOnLoadMethodAttribute(RuntimeInitializeLoadType loadType)

Parameters

Specifies when the callback is invoked during the start up of the runtime.

Remarks