Function findObjectsOfType
findObjectsOfType<T extends IComponent>( type: Constructor<T>, array?: T[], contextOrScene?: undefined | Object3D<Object3DEventMap> | { scene: Scene },): T[] Parameters
- type: Constructor<T>
Optional
array: T[]- contextOrScene: undefined | Object3D<Object3DEventMap> | { scene: Scene } = undefined
Returns T[]
Searches the the scene for all components of the given type.
If the contextOrScene is not provided, the current context is used.