Skip to main content

LensStudio:HierarchyUtils.js.findInRootObjectsByType

Function

Finds 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

ParameterTypeDescription
sceneSceneThe scene to search in.
componentTypestringThe type of component to search for.
options?SearchOptionsAdditional search options.

Returns

SceneObject[]

an array of found scene objects, or null if not found.