Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ GameObject() [2/24]

Sisus.Init.GameObject< TFirstComponent, TSecondComponent, TThirdComponent >.GameObject ( string name,
bool active )

The new GameObject is always first created in an inactive state and only activated once both components have been added and initialized and only if active is set to true. This ensures that the Awake and OnEnable event functions for the component are only called after the component has been initialized with its dependencies.

Parameters
nameThe name that the GameObject is created with.
activeDefines whether the created GameObject is active in the Scene.