The type of the component to search for.
The context or scene to search in. If not provided, the current context is used.
If true, also inactive components are returned. Default is true.
The first component of the given type found in the scene or null if none was found.
const myComponent = findObjectOfType(MyComponent);
Generated using TypeDoc
Searches the the scene for a component of the given type.
If the contextOrScene is not provided, the current context is used.