C4 Engine
C4 Engine API Documentation

MaterialObject::FindRegisteredSubstance

Defined in:  C4MaterialObjects.h
Returns a specific registered substance.
Prototype

static const Substance *FindRegisteredSubstance(SubstanceType type);

Parameters
type The type of the substance.
Description
The FindRegisteredSubstance function returns a pointer to the registered Substance object corresponding to the substance type specified by the type parameter. If no such registration exists, then the return value is nullptr.
See Also

MaterialObject::GetFirstRegisteredSubstance

MaterialObject::RegisterSubstance

Substance