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