Applies a function to all descendants of the root object.
The root of the tree to apply the function to.
This function is called with every scene object descended from rootObject as an argument.
Applies a function to all descendants of the root object.