Utility Class Reference

Description

Static class containing various utility methods that do not fit anywhere else.

Static methods

static Vector< ResourceDependencyfindResourceDependencies (IReflectable &object, bool recursive=true)
 Finds all resources referenced by the specified object. More...
 
static Vector< HComponentfindComponents (const HSceneObject &object, UINT32 typeId)
 Finds all components of a specific type on a scene object and any of its children. More...
 
static UINT32 getSceneObjectDepth (const HSceneObject &so)
 Calculates how deep in the scene object hierarchy is the provided object. More...
 

Method documentation

static Vector<HComponent> findComponents ( const HSceneObject object,
UINT32  typeId 
)
static

Finds all components of a specific type on a scene object and any of its children.

Parameters
[in]objectObject which to search for components. All children will be searched as well.
[in]typeIdRTTI type ID of the component type to search for.
Returns
A list of all components of the specified type.
static Vector<ResourceDependency> findResourceDependencies ( IReflectable object,
bool  recursive = true 
)
static

Finds all resources referenced by the specified object.

Parameters
[in]objectObject to search for resource dependencies.
[in]recursiveDetermines whether or not child objects will also be searched (if the object has any children).
Returns
A list of unique, non-null resources.
static UINT32 getSceneObjectDepth ( const HSceneObject so)
static

Calculates how deep in the scene object hierarchy is the provided object.

Zero means root.