class
Utility
Static class containing various utility methods that do not fit anywhere else.
Public
Methods
staticFindResourceDependencies
static Vector<ResourceDependency> FindResourceDependencies(IReflectable &object, bool recursive = true)
Finds all resources referenced by the specified object.
- object
- Object to search for resource dependencies.
- recursive
- Determines whether or not child objects will also be searched (if the object has any children).
Returns: A list of unique, non-null resources.
staticFindComponents
static Vector<HComponent> FindComponents(const HSceneObject &object, u32 typeId)
Finds all components of a specific type on a scene object and any of its children.
- object
- Object which to search for components. All children will be searched as well.
- typeId
- RTTI type ID of the component type to search for.
Returns: A list of all components of the specified type.
staticGetSceneObjectDepth
static u32 GetSceneObjectDepth(const HSceneObject &so)
Calculates how deep in the scene object hierarchy is the provided object.
Zero means root.