![]() |
Init(args)
Scripting Reference
|
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.
TFirstComponent | Type of the first added component. |
TSecondComponent | Type of the second added component. |
Static Public Member Functions | |
static implicit | operator TFirstComponent (UninitializedGameObject< TFirstComponent, TSecondComponent > @this) |
Finalizes the GameObject creation and returns the first added component. | |
static implicit | operator TSecondComponent (UninitializedGameObject< TFirstComponent, TSecondComponent > @this) |
Finalizes the GameObject creation and returns the second added component. | |
static implicit | operator (TFirstComponent, TSecondComponent)(UninitializedGameObject< TFirstComponent |
Finalizes the GameObject creation and returns both added components. | |