Skip to main content

LensStudio:HierarchyUtils.js.findInDescendantsByName

Function

Finds 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

ParameterTypeDescription
baseScene | SceneObjectThe base scene object to search in.
namestringThe name of the scene object(s) to find. Only exact matches are considered.
options?SearchOptionsOptional search options.

Returns

SceneObject[]

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