LensStudio:HierarchyUtils.js.findInDescendantsByName
FunctionFinds a scene object or an array of scene objects in the descendants of a base scene object by name.
findInDescendantsByName(
base,name,options?):SceneObject[]
Finds a scene object or an array of scene objects in the descendants of a base scene object by name.
Parameters
| Parameter | Type | Description |
|---|---|---|
base | Scene | SceneObject | The base scene object to search in. |
name | string | The name of the scene object(s) to find. Only exact matches are considered. |
options? | SearchOptions | Optional search options. |
Returns
an array of found scene objects, or null if not found.