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

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

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

Initialize the third added component of type TThirdComponent 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
Created object which can be cast to GameObject, TFirstComponent , TSecondComponent , TThirdComponent or System.ValueTuple<TFirstComponent, TSecondComponent, TThirdComponent>.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TThirdComponent :Component