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

◆ Init1< TFirstComponent, TSecondComponent, TThirdComponent >() [5/5]

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

Initialize the first added component of type TFirstComponent 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 first added component and handles initializing it.
Returns
Partially initialized GameObject still requiring Init2 and Init3 to be called until it is ready for usage.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TThirdComponent :Component