Searches the the scene for all components of the given type.If the contextOrScene is not provided, the current context is used.
The type of the component to search for.
The context or scene to search in. If not provided, the current context is used.
const myComponents = findObjectsOfType(MyComponent); Copy
const myComponents = findObjectsOfType(MyComponent);
Generated using TypeDoc
Searches the the scene for all components of the given type.
If the contextOrScene is not provided, the current context is used.