Searches for a given component type in the given object.
The object to search in.
The type of the component to search for.
The first component of the given type found in the given object.
const myComponent = getComponent(myObject, MyComponent); Copy
const myComponent = getComponent(myObject, MyComponent);
Generated using TypeDoc
Searches for a given component type in the given object.