Class InitializeOnLoadAttribute
Marks a class as requiring eager initialization.
Classes marked with this attribute will have their static constructors executed whenever assemblies are loaded or reloaded.
Very useful for event (re)wiring.
Implements
Inherited Members
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class InitializeOnLoadAttribute : Attribute, _Attribute