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

◆ Init3< TFirstComponent, TSecondComponent, TThirdComponent, TFirstArgument, TSecondArgument >() [2/2]

static Components< TFirstComponent, TSecondComponent, TThirdComponent > Sisus.Init.GameObjectT3Extensions.Init3< TFirstComponent, TSecondComponent, TThirdComponent, TFirstArgument, TSecondArgument > ( this GameObjectWithInit2Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @ this,
TFirstArgument firstArgument,
TSecondArgument secondArgument,
First thirdArgument )
static

Initialize the third added component of type TSecondComponent using three arguments with 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.
TFirstArgumentType of the first argument.
TSecondArgumentType of the second argument.
Parameters
thisnew GameObject being initialized.
firstArgumentThe first argument used when initializing the third added component.
secondArgumentThe second argument used when initializing the third added component.
thirdArgumentThe First.Component token informing that the first added component should be used as the third argument when initializing the third added component.
Returns
Created object which can be cast to GameObject, TFirstComponent , TSecondComponent , TThirdComponent or System.ValueTuple<TFirstComponent, TSecondComponent, TThirdComponent>.
Exceptions
InitArgumentsNotReceivedExceptionThrown if TThirdComponent class does not implement IInitializable<TFirstArgument, TSecondArgument, TFirstComponent> and did not receive the arguments during its initialization.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TThirdComponent :Component 
TThirdComponent :IThreeArguments 
TThirdComponent :IFirstArgument<TFirstArgument> 
TThirdComponent :ISecondArgument<TSecondArgument>