nw::demo::Utility::FindResAnimByName Member Function

Syntax

template <class TResArray>
static nw::anim::ResAnim FindResAnimByName(
     TResArray & resources,
     const char * animationName,
     AnimationType animationType
);

Arguments

Name Description
in resources Collection of animation resources.
in animationName Name of animation resource.
in animationType The animation type.

Return Values

Returns the found animation resource.

Description

Searches for the animation resource with the specified name.

The collection is searched for the animation resource with the specified name. A linear search is done on the collection, so be careful about collections with large numbers of elements.

If cannot be found, the function returns an invalid resource, so use the IsValid function to check the returned value. If two or more resources with the same name exist, the function will return the first resource found.


CONFIDENTIAL