C4 Engine
C4 Engine API Documentation

MaterialObject::GetFirstAttribute

Defined in:  C4MaterialObjects.h
Returns a pointer to the first material attribute.
Prototype

Attribute *GetFirstAttribute(voidconst;

Description
The GetFirstAttribute function returns a pointer to the first attribute belonging to a material object. If the material object contains no attributes, then the return value is nullptr. The ListElement::GetNextListElement function can be used to iterate through all of the attributes belonging to a material object.
See Also

Attribute

MaterialObject::GetAttributeList

MaterialObject::FindAttribute

MaterialObject::AddAttribute

MaterialObject::PurgeAttributes