Skip to main content

eva.js.gameobject.getcomponent

Home > @eva/eva.js > GameObject > getComponent

GameObject.getComponent() method

Signature:
getComponent<T extends Component<ComponentParams>>(c: ComponentConstructor<T>): T;

Parameters

ParameterTypeDescription
cComponentConstructor<T>
Returns:

T

你有任何问题,或者需要我们帮你开发,请扫码联系
X