Developer

API Reference

ITRIGPLAYEREX_GetElementMetadataByName()

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
Brew Release
Brew MP 1.0.2
Description
Returns the element metadata for the given element.
Parameters
  • po
    []:
    A pointer to an ITrigplayerEx object.
  • name
    []:
    The name of the element to look up.

Interface
ITRIGPLAYEREX
Prototype
   const TrigmlElementMetadata* ITRIGPLAYEREX_GetElementMetadataByName(ITrigplayerEx* po, const char* name);
Return
   A pointer to the element identified by the classId and id parameters.
   NULL if no such element exists.
Side Effect
None
Comment
Search by name is not a free operation and should be avoided if possible. It is usually necessary only when the class ID and ID of the element are unknown until runtime (e.g. when creating an element from LUA script).
  • Follow