C4 Engine
C4 Engine API Documentation

MaterialObject::SetMaterialSubstance

Defined in:  C4MaterialObjects.h
Sets the material substance type.
Prototype

void SetMaterialSubstance(SubstanceType substance);

Parameters
substance The new material substance type. Pass the constant kSubstanceNone to indicate no substance.
Description
The SetMaterialSubstance function sets the material substance type to the 32-bit identifier specified by the substance parameter. The substance type typically corresponds to a substance that was previously registered with the engine using the MaterialObject::RegisterSubstance function.
See Also

MaterialObject::GetMaterialSubstance

MaterialObject::RegisterSubstance