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

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

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

Initialize the first added component of type TFirstComponent using five arguments with the second 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.
TFourthArgumentType of the fourth argument.
TFifthArgumentType of the fifth argument.
Parameters
thisnew GameObject being initialized.
firstArgumentThe first argument used when initializing the first added component.
secondArgumentThe second argument used when initializing the first added component.
thirdArgumentThe Second.Component token informing that the second added component should be used as the third argument when initializing the first added component.
fourthArgumentThe fourth argument used when initializing the first added component.
fifthArgumentThe fifth argument used when initializing the first added component.
Returns
Partially initialized GameObject still requiring Init2 and Init3 to be called until it is ready for usage.
Exceptions
InitArgumentsNotReceivedExceptionThrown if TFirstComponent class does not implement IInitializable<TFirstArgument, TSecondArgument, TSecondComponent, TFourthArgument, TFifthArgument> and did not receive the arguments during its initialization.
Type Constraints
TFirstComponent :Component 
TFirstComponent :IFiveArguments 
TFirstComponent :IFirstArgument<TFirstArgument> 
TFirstComponent :ISecondArgument<TSecondArgument> 
TFirstComponent :IFourthArgument<TFourthArgument> 
TFirstComponent :IFifthArgument<TFifthArgument> 
TSecondComponent :Component 
TThirdComponent :Component