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

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

static UninitializedGameObject< TFirstComponent, TSecondComponent > Sisus.Init.GameObjectT2Extensions.Init1< TFirstComponent, TSecondComponent, TFirstArgument, TSecondArgument, TThirdArgument, TFifthArgument > ( this GameObject< TFirstComponent, TSecondComponent > @ this,
TFirstArgument firstArgument,
TSecondArgument secondArgument,
TThirdArgument thirdArgument,
Second fourthArgument,
TFifthArgument fifthArgument )
static

Initialize the first added component of type TFirstComponent using five arguments with the second added component being the fourth one.

Template Parameters
TFirstComponentType of the first added component.
TSecondComponentType of the second added component.
TFirstArgumentType of the first argument.
TSecondArgumentType of the second argument.
TThirdArgumentType of the third argument.
TFifthArgumentType of the fifth argument.
Parameters
firstArgumentThe first argument passed to the first added component's Init function.
secondArgumentThe second argument passed to the first added component's Init function.
thirdArgumentThe third argument passed to the first added component's Init function.
fourthArgumentThe Second.Component token informing that the second added component should be used as the fourth argument when calling the first added component's Init function.
fifthArgumentThe fifth argument passed to the first added component's Init function.
Returns
Partially initialized GameObject still requiring Init2 to be called until it is ready for usage.
Exceptions
InitArgumentsNotReceivedExceptionThrown if TFirstComponent class does not implement IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TSecondComponent, TFifthArgument> and did receive the arguments during initialization.
Type Constraints
TFirstComponent :Component 
TFirstComponent :IFiveArguments 
TFirstComponent :IFirstArgument<TFirstArgument> 
TFirstComponent :ISecondArgument<TSecondArgument> 
TFirstComponent :IThirdArgument<TThirdArgument> 
TFirstComponent :IFifthArgument<TFifthArgument> 
TSecondComponent :Component