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

◆ Init1< TFirstComponent, TSecondComponent, TThirdComponent >() [2/5]

static GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > Sisus.Init.GameObjectT3Extensions.Init1< TFirstComponent, TSecondComponent, TThirdComponent > ( this GameObject< TFirstComponent, TSecondComponent, TThirdComponent > @ this,
Second argument )
static

Initialize the first added component of type TFirstComponent using the second added component as the argument.

Template Parameters
TFirstComponentType of the first added component.
TSecondComponentType of the second added component.
TThirdComponentType of the third added component.
Parameters
thisnew GameObject being initialized.
argumentThe 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<TSecondComponent> and did not receive the arguments during its initialization.
Type Constraints
TFirstComponent :Component 
TFirstComponent :IOneArgument 
TSecondComponent :Component 
TThirdComponent :Component