eva.js.gameobject.getcomponent
Home > @eva/eva.js > GameObject > getComponent
GameObject.getComponent() method
Signature:getComponent<T extends Component<ComponentParams>>(c: ComponentConstructor<T>): T;
Parameters
Parameter | Type | Description |
---|---|---|
c | ComponentConstructor<T> |
T