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

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

static UninitializedGameObject< TFirstComponent, TSecondComponent > Sisus.Init.GameObjectT2Extensions.Init1< TFirstComponent, TSecondComponent > ( this GameObject< TFirstComponent, TSecondComponent > @ 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.
Parameters
thisnew GameObject being initialized.
argument
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<TSecondComponent> and did receive the arguments during initialization.
Type Constraints
TFirstComponent :Component 
TFirstComponent :IOneArgument 
TSecondComponent :Component