C4 Engine
C4 Engine API Documentation

MaterialObject::GetLastRegisteredSubstance

Defined in:  C4MaterialObjects.h
Returns the first registered substance.
Prototype

static const Substance *GetLastRegisteredSubstance(void);

Description
The GetLastRegisteredSubstance function returns a pointer to the Substance object corresponding to the last registered substance type. The entire list of registered substances can be iterated by calling the Substance::GetPreviousRegisteredSubstance function on the returned object and continuing until nullptr is returned.
See Also

MaterialObject::GetFirstRegisteredSubstance

MaterialObject::FindRegisteredSubstance

MaterialObject::RegisterSubstance

Substance::GetPreviousRegisteredSubstance