• Recursively sets the active state of the given object and all its children.

    Parameters

    • object: Object3D

      The object to set the active state of.

    • active: boolean

      The state to set.

    • Optional typeClass: ComponentConstructor

    Returns void

    Example

    // turn off all components on this object and its children
    setComponentsActive(this.someObject, undefined, false);