C4 Engine
C4 Engine API Documentation

MaterialObject::RegisterSubstance

Defined in:  C4MaterialObjects.h
Registers a substance with the engine.
Prototype

static void RegisterSubstance(Substance *substance);

Parameters
substance The substance object to register.
Description
The RegisterSubstance function registers the Substance object specified by the substance parameter with the engine. The substance type represetned by the Substance object must be unique among all previously registered substances, or else the substance is not registered.
See Also

MaterialObject::GetFirstRegisteredSubstance

MaterialObject::FindRegisteredSubstance

Substance