nw::demo::Utility::FindObjectByName Member Function

Syntax

template <class TObjectArray>
static nw::gfx::SceneObject * FindObjectByName(
     TObjectArray & objects,
     const char * objectName
);

Arguments

Name Description
in objects Collection of scene objects.
in objectName Scene object name.

Return Values

Returns the scene object that was found.

Description

Searches for the scene object with the specified name.

The collection is searched for the scene object with the specified name. The function conducts a linear search, so be careful about collections with large numbers of elements.

Returns NULL if cannot be found. If two or more objects with the same name exist, the function will return the first object found.


CONFIDENTIAL