|
Init(args)
Scripting Reference
|
◆ InitInEditModeAttribute() [1/3]
When this attribute is attached to a MonoBehaviour<> class, instances of the component are re-initialized whenever any objects in the same scene or prefab are modified. When this attribute is attached to an IInitializer class, instance of the initializer will re-initialize their client whenever any objects in the same scene or prefab are modified. If the client component has an initializer attached to it, then the initialization arguments configured using the initializer are passed to the IInitializable<>.Init function of the client. If the client component does not have an initializer, then the initialization arguments are gathered according to the search rules specified via the arguments passed to the constructor of this attribute. |