Init(args)
Scripting Reference
List of all members | Static Public Member Functions
Sisus.Init.GameObjectWithInit2Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > Struct Template Reference

Description

Builder for creating a new GameObject with three components.

The third component still needs to be initialized by calling the GameObjectT3Extensions.Init3<TFirstComponent, TSecondComponent, TThirdComponent, TArgument> function with arguments matching the argument lists defined by the IArgs interface that TThirdComponent implements.

If TThirdComponent does not implement any IArgs interface then the parameterless 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; already 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 (GameObjectWithInit2Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Finalizes the GameObject creation and returns the first added component. More...
 
static implicit operator TSecondComponent (GameObjectWithInit2Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Finalizes the GameObject creation and returns the second added component. More...
 
static implicit operator TThirdComponent (GameObjectWithInit2Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Finalizes the GameObject creation and returns the third added component. More...
 
static implicit operator (TFirstComponent, TSecondComponent, TThirdComponent)(GameObjectWithInit2Of3Done< TFirstComponent
 Finalizes the GameObject creation and returns both added components. More...