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

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

static GameObjectWithInit2Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > Sisus.Init.GameObjectT3Extensions.Init2< TFirstComponent, TSecondComponent, TThirdComponent > ( this GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @ this,
Third firstArgument,
First secondArgument )
static

Initialize the second added component of type TSecondComponent using two arguments with the third added component being the first one and the first added component being the second one.

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.
firstArgumentThe First.Component token informing that the first added component should be used as the first argument when initializing the second added component.
secondArgumentThe Third.Component token informing that the third added component should be used as the second argument when initializing the second added component.
Returns
Created object which can be cast to GameObject, TFirstComponent , TSecondComponent , TThirdComponent or System.ValueTuple<TFirstComponent, TSecondComponent, TThirdComponent>.
Exceptions
InitArgumentsNotReceivedExceptionThrown if TSecondComponent class does not implement IInitializable<TThirdComponent, TFirstComponent> and did not receive the arguments during its initialization.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TSecondComponent :ITwoArguments 
TThirdComponent :Component