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

◆ Init2< TFirstComponent, TSecondComponent, TThirdComponent >() [6/6]

static GameObjectWithInit2Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > Sisus.Init.GameObjectT3Extensions.Init2< TFirstComponent, TSecondComponent, TThirdComponent > ( this GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @ this,
[DisallowNull] Action< TSecondComponent > init )
static

Initialize the second added component of type TSecondComponent using a delegate.

Template Parameters
TFirstComponentType of the first added component.
TSecondComponentType of the second added component.
TThirdComponentType of the third added component.
Parameters
thisnew GameObject being initialized.
initDelegate pointing to a function that accepts the second added component and handles initializing it.
Returns
Partially initialized GameObject still Init3 to be called until it is ready for usage.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TThirdComponent :Component