|
Init(args)
Scripting Reference
|
Represents a pair of components that exist on the same GameObject.
Can be cast to GameObject, TFirstComponent , TSecondComponent or System.ValueTuple<TFirstComponent, TSecondComponent>.
| TFirstComponent | Type of the first component. |
| TSecondComponent | Type of the second component. |
Static Public Member Functions | |
| static implicit | operator GameObject (Components< TFirstComponent, TSecondComponent > @this) |
| Gets the GameObject that holds the pair of components. | |
| static implicit | operator Transform (Components< TFirstComponent, TSecondComponent > @this) |
| Gets the Transform component of the GameObject that holds the pair of components. | |
| static implicit | operator TFirstComponent (Components< TFirstComponent, TSecondComponent > @this) |
| Gets the first component of the component pair. | |
| static implicit | operator TSecondComponent (Components< TFirstComponent, TSecondComponent > @this) |
| Gets the second component of the component pair. | |
| static implicit | operator (TFirstComponent, TSecondComponent)(Components< TFirstComponent |
| Gets a tuple containing the component pair. | |