• Searches the the scene for all components of the given type.
    If the contextOrScene is not provided, the current context is used.

    Type Parameters

    • T extends IComponent

    Parameters

    • type: Constructor<T>

      The type of the component to search for.

    • array: T[]
    • contextOrScene: any = undefined

      The context or scene to search in. If not provided, the current context is used.

    Returns T[]

    Example

    const myComponents = findObjectsOfType(MyComponent);
    

Generated using TypeDoc