LensStudio:HierarchyUtils.js.findInDescendantsByType
FunctionFinds a scene object or an array of scene objects within the descendants of a base scene object, based on the specified component type.
findInDescendantsByType(
base,componentType,options?):SceneObject[]
Finds a scene object or an array of scene objects within the descendants of a base scene object, based on the specified component type.
Parameters
| Parameter | Type | Description |
|---|---|---|
base | Scene | SceneObject | The base scene object or scene to search within. |
componentType | string | The type of component to search for. |
options? | SearchOptions | Optional search options. |
Returns
an array of found scene objects, or null if not found.