LensStudio:HierarchyUtils.js.findInRootObjectsByType
FunctionFinds objects of a specific component type in the root of a scene.
findInRootObjectsByType(
scene,componentType,options?):SceneObject[]
Finds objects of a specific component type in the root of a scene.
Parameters
| Parameter | Type | Description |
|---|---|---|
scene | Scene | The scene to search in. |
componentType | string | The type of component to search for. |
options? | SearchOptions | Additional search options. |
Returns
an array of found scene objects, or null if not found.