Recursively searches all descendant entities for one with the given name.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
Framework
- Reality
Kit
Declaration
Parameters
name
The entity name for which to search.
Return Value
An entity with the given name, or nil
if no entity is found.
Discussion
The find
method conducts a depth-first, recursive search over all of the entity’s descendants for one whose name
property matches the given name. The method returns the first match. Entity names need not be unique.