• Applies a function to all descendants of the root object.

    Parameters

    • rootObject: SceneObject

      The root of the tree to apply the function to.

    • toApply: ((sceneObject: SceneObject) => void)

      This function is called with every scene object descended from rootObject as an argument.

        • (sceneObject): void
        • Parameters

          Returns void

    Returns void