LensStudio:HierarchyUtils.js.findInAncestorsByName
FunctionFinds a scene object with the specified name in the ancestors of the given base scene object.
findInAncestorsByName(
base,name,options?):SceneObject[]
Finds a scene object with the specified name in the ancestors of the given base scene object.
Parameters
| Parameter | Type | Description |
|---|---|---|
base | SceneObject | The base scene object from which to start the search. |
name | string | The name of the scene object to find. Only exact matches are considered. |
options? | SearchOptions | The search options. |
Returns
The found scene object if findAll is false, an array of found scene objects if findAll is true, or null if no scene object is found.