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

Description

Represents a pair of components that exist on the same GameObject.

Represents three of components that exist on the same GameObject.

Can be cast to GameObject, TFirstComponent , TSecondComponent or System.ValueTuple<TFirstComponent, TSecondComponent>.

Template Parameters
TFirstComponentType of the first component.
TSecondComponentType of the second component.

Can be cast to GameObject, TFirstComponent , TSecondComponent , TThirdComponent or System.ValueTuple<TFirstComponent, TSecondComponent, TThirdComponent>.

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

Static Public Member Functions

static implicit operator GameObject (Components< TFirstComponent, TSecondComponent > @this)
 Gets the GameObject that holds the pair of components. More...
 
static implicit operator Transform (Components< TFirstComponent, TSecondComponent > @this)
 Gets the Transform component of the GameObject that holds the pair of components. More...
 
static implicit operator TFirstComponent (Components< TFirstComponent, TSecondComponent > @this)
 Gets the first component of the component pair. More...
 
static implicit operator TSecondComponent (Components< TFirstComponent, TSecondComponent > @this)
 Gets the second component of the component pair. More...
 
static implicit operator (TFirstComponent, TSecondComponent)(Components< TFirstComponent
 Gets a tuple containing the component pair. More...
 
static implicit operator GameObject (Components< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Gets the GameObject that holds the pair of components. More...
 
static implicit operator Transform (Components< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Gets the Transform component of the GameObject that holds the pair of components. More...
 
static implicit operator TFirstComponent (Components< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Gets the first one of the three components. More...
 
static implicit operator TSecondComponent (Components< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Gets the second one of the three components. More...
 
static implicit operator TThirdComponent (Components< TFirstComponent, TSecondComponent, TThirdComponent > @this)
 Gets the third one of the three components. More...
 
static implicit operator (TFirstComponent, TSecondComponent, TThirdComponent)(Components< TFirstComponent
 Gets a System.ValueTuple<TFirstComponent, TSecondComponent, TThirdComponent> containing all three components. More...