Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > Struct Template Reference

Description

Builder for creating a new GameObject with three components.

The second and third components still need to be initialized by calling GameObjectT3Extensions.Init2<TFirstComponent, TSecondComponent, TThirdComponent, TArgument> and GameObjectT3Extensions.Init3<TFirstComponent, TSecondComponent, TThirdComponent, Argument> functions with arguments matching the argument lists defined by the IArgs interfaces that TSecondComponent and TThirdComponent implement.

If TSecondComponent or TThirdComponent does not implement any IArgs interface then the parameterless Init2 or Init3 function should be used to initialize the component in question.

Template Parameters
TFirstComponentType of the first added component; already initialized.
TSecondComponentType of the second added component; not yet initialized.
TThirdComponentType of the third added component; not yet initialized.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TThirdComponent :Component 

Static Public Member Functions

static implicit operator TFirstComponent (GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Finalizes the GameObject creation and returns the first added component.
 
static implicit operator TSecondComponent (GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Finalizes the GameObject creation and returns the second added component.
 
static implicit operator TThirdComponent (GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Finalizes the GameObject creation and returns the third added component.
 
static implicit operator (TFirstComponent, TSecondComponent, TThirdComponent)(GameObjectWithInit1Of3Done< TFirstComponent
 Finalizes the GameObject creation and returns both added components.