nw::demo::Utility::FindObjectByName Member Functiontemplate <class TObjectArray> static nw::gfx::SceneObject * FindObjectByName( TObjectArray & objects, const char * objectName );
| Name | Description | |
|---|---|---|
| in | objects | Collection of scene objects. |
| in | objectName | Scene object name. |
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