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

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

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

Initialize the first added component of type TThirdComponent using a delegate.

Template Parameters
TFirstComponentType of the first added component.
TSecondComponentType of the second 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 requiring Init2 to be called until it is ready for usage.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component