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

◆ Init1< TFirstComponent, TSecondComponent, TThirdComponent, TThirdArgument, TFourthArgument, TFifthArgument >()

static GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > Sisus.Init.GameObjectT3Extensions.Init1< TFirstComponent, TSecondComponent, TThirdComponent, TThirdArgument, TFourthArgument, TFifthArgument > ( this GameObject< TFirstComponent, TSecondComponent, TThirdComponent > @ this,
Second firstArgument,
Third secondArgument,
TThirdArgument thirdArgument,
TFourthArgument fourthArgument,
TFifthArgument fifthArgument )
static

Initialize the first added component of type TFirstComponent using five arguments with the second added component being the first one and the third 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.
TThirdArgumentType of the third argument.
TFourthArgumentType of the fourth argument.
TFifthArgumentType of the fift argument.
Parameters
thisnew GameObject being initialized.
firstArgumentThe Second.Component token informing that the second added component should be used as the first argument when initializing the first added component.
secondArgumentThe Third.Component token informing that the third added component should be used as the second argument when initializing the first added component.
thirdArgumentThe third argument used when initializing the first added component.
Returns
Created object which can be cast to GameObject, TFirstComponent , TSecondComponent , TThirdComponent or System.ValueTuple<TFirstComponent, TSecondComponent, TThirdComponent>.
Exceptions
InitArgumentsNotReceivedExceptionThrown if TFirstComponent class does not implement IInitializable<TFirstComponent, TSecondComponent, TThirdArgument, TFourthArgument, TFifthArgument> and did not receive the arguments during its initialization.
Type Constraints
TFirstComponent :Component 
TFirstComponent :IFiveArguments 
TFirstComponent :IThirdArgument<TThirdArgument> 
TFirstComponent :IFourthArgument<TFourthArgument> 
TFirstComponent :IFifthArgument<TFifthArgument> 
TSecondComponent :Component 
TThirdComponent :Component