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

◆ Init2< TFirstComponent, TSecondComponent, TThirdComponent, TSecondArgument, TThirdArgument, TFourthArgument >() [1/2]

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

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

Template Parameters
TFirstComponentType of the first added component.
TSecondComponentType of the second added component.
TThirdComponentType of the third added component.
TSecondArgumentType of the second argument.
TThirdArgumentType of the third argument.
TFourthArgumentType of the fourth argument.
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 second argument used when initializing the second added component.
thirdArgumentThe third argument used when initializing the second added component.
fourthArgumentThe fourth argument used 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, TThirdArgument, TFourthArgument> and did not receive the arguments during its initialization.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TSecondComponent :IFourArguments 
TSecondComponent :ISecondArgument<TSecondArgument> 
TSecondComponent :IThirdArgument<TThirdArgument> 
TSecondComponent :IFourthArgument<TFourthArgument> 
TThirdComponent :Component