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

Description

Builder for creating a new GameObject with two components.

The second component still needs to be initialized by calling an GameObjectT2Extensions.Init2<TFirstComponent, TSecondComponent, TArgument> function with arguments matching the argument list defined by the IArgs interface that TSecondComponent implements.

If TSecondComponent does not implement any IArgs interface then the parameterless Init function should be used.

Template Parameters
TFirstComponentType of the first added component.
TSecondComponentType of the second added component.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 

Static Public Member Functions

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