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

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

static Components< TFirstComponent, TSecondComponent > Sisus.Init.GameObjectT2Extensions.Init2< TFirstComponent, TSecondComponent > ( this UninitializedGameObject< TFirstComponent, TSecondComponent > @ 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.
Parameters
thisnew GameObject being initialized.
initDelegate pointing to a function that accepts the second added component and handles initializing it.
Returns
Created object which can be cast to GameObject, TFirstComponent , TSecondComponent or System.ValueTuple<TFirstComponent, TSecondComponent>.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component