Init(args)
Scripting Reference

◆ Init< TFirstComponent, TSecondComponent, TThirdComponent >()

static Components<TFirstComponent, TSecondComponent, TThirdComponent> Sisus.Init.GameObjectT3Extensions.Init< TFirstComponent, TSecondComponent, TThirdComponent > ( this GameObject< TFirstComponent, TSecondComponent, TThirdComponent > @  this)
static

Initializes all added components without any additional arguments.

If the first added component implements IArgs<TSecondComponent>, IArgs<TThirdComponent> or IArgs<TSecondComponent, TThirdComponent> then its Init function will get called with the matching components as arguments.

If the second added component implements IArgs<TFirstComponent>, IArgs<TThirdComponent> or IArgs<TFirstComponent, TThirdComponent> then its Init function will get called with the matching components as arguments.

If the third added component implements IArgs<TFirstComponent>, IArgs<TSecondComponent> or IArgs<TFirstComponent, TSecondComponent> then its Init function will get called with the matching components as arguments.

Template Parameters
TFirstComponentType of the first added component.
TSecondComponentType of the second added component.
TThirdComponentType of the third added component.
Parameters
thisnew GameObject being initialized.
Returns
Created object which can be cast to GameObject, TFirstComponent , TSecondComponent , or System.ValueTuple<TFirstComponent, TSecondComponent, TThirdComponent>.
Type Constraints
TFirstComponent :Component 
TSecondComponent :Component 
TThirdComponent :Component