addComponent<T extends IComponent>( obj: Object3D, componentInstance: T | ConstructorConcrete<T>, init?: Partial< NoInternalNeedleEngineState< FilterStartingWith<FilterTypes<T, undefined | null | Function>, "_">, >, >, opts?: { callAwake: boolean },): T Parameters
- obj: Object3D
- componentInstance: T | ConstructorConcrete<T>
Optional
init: Partial<
NoInternalNeedleEngineState<
FilterStartingWith<FilterTypes<T, undefined | null | Function>, "_">,
>,
>Optional
opts: { callAwake: boolean }
Returns T