|
Init(args)
Scripting Reference
|
◆ InitOnResetAttribute() [2/3]
When a component that derives from MonoBehaviour<T> and has the InitOnResetAttribute is first added to a GameObject in the editor, or when the user hits the Reset button in the Inspector's context menu, the arguments accepted by the component are automatically gathered and passed to its IInitializable<T>.Init function. This auto-initialization behaviour only occurs in edit mode during the Reset event function and is meant to make it more convenient to add components without needing to assign all Object references manually through the inspector.
|