Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ Init< TComponent >() [2/2]

static TComponent Sisus.Init.GameObjectT1Extensions.Init< TComponent > ( this GameObject< TComponent > @ this,
[DisallowNull] Action< TComponent > init )
static

Initializes the added component using a delegate.

Template Parameters
TComponentType of the added component.
Parameters
thisnew GameObject being initialized.
initDelegate pointing to a function that accepts the second added component and handles initializing it.
Returns
The initialized component.
Type Constraints
TComponent :Component