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

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

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

Initialize the second added component of type TSecondComponent using three arguments with the third added component being the first one and the first added component being the third 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 Third.Component token informing that the third added component should be used as the first argument when initializing the second added component.
secondArgumentThe second argument used when initializing the second added component.
thirdArgumentThe First.Component token informing that the first added component should be used as the third 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, TSecondArgument, TFirstComponent> and did not receive the arguments during its initialization.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TSecondComponent :IThreeArguments 
TSecondComponent :ISecondArgument<TSecondArgument> 
TThirdComponent :Component