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

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

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

Initialize the second added component of type TSecondComponent using five arguments with the first 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
thisnew GameObject being initialized.
firstArgumentThe first argument passed to the second added component's Init function.
secondArgumentThe second argument passed to the second added component's Init function.
thirdArgumentThe third argument passed to the second added component's Init function.
fourthArgumentThe fourth argument passed to the second added component's Init function.
fifthArgumentThe fifth argument passed to the second added component's Init function.
Returns
Created object which can be cast to GameObject, TFirstComponent , TSecondComponent or System.ValueTuple<TFirstComponent, TSecondComponent>.
Exceptions
InitArgumentsNotReceivedExceptionThrown if TSecondComponent class does not implement IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFirstComponent, TFifthArgument> and did receive the arguments during initialization.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TSecondComponent :IFiveArguments 
TSecondComponent :IFirstArgument<TFirstArgument> 
TSecondComponent :ISecondArgument<TSecondArgument> 
TSecondComponent :IThirdArgument<TThirdArgument> 
TSecondComponent :IFifthArgument<TFifthArgument>