![]() |
Init(args)
Scripting Reference
|
Builder for creating a new GameObject with three components.
The second and third components still need to be initialized by calling GameObjectT3Extensions.Init2<TFirstComponent, TSecondComponent, TThirdComponent, TArgument> and GameObjectT3Extensions.Init3<TFirstComponent, TSecondComponent, TThirdComponent, Argument> functions with arguments matching the argument lists defined by the IArgs interfaces that TSecondComponent and TThirdComponent implement.
If TSecondComponent or TThirdComponent does not implement any IArgs interface then the parameterless Init2 or Init3 function should be used to initialize the component in question.
TFirstComponent | Type of the first added component; already initialized. |
TSecondComponent | Type of the second added component; not yet initialized. |
TThirdComponent | Type of the third added component; not yet initialized. |
Static Public Member Functions | |
static implicit | operator TFirstComponent (GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this) |
Finalizes the GameObject creation and returns the first added component. | |
static implicit | operator TSecondComponent (GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this) |
Finalizes the GameObject creation and returns the second added component. | |
static implicit | operator TThirdComponent (GameObjectWithInit1Of3Done< TFirstComponent, TSecondComponent, TThirdComponent > @this) |
Finalizes the GameObject creation and returns the third added component. | |
static implicit | operator (TFirstComponent, TSecondComponent, TThirdComponent)(GameObjectWithInit1Of3Done< TFirstComponent |
Finalizes the GameObject creation and returns both added components. | |