EditModel3D.SetActiveMaterial

This page contains reference documentation for the SetActiveMaterial function. This function sets a material as the active material in the scene graph.

Prototype

int SetActiveMaterial( Material NewActiveMaterial )

Parameters

Function parameters are as follows:

Examples

Examples are as follows:

// Set the selected material as Active Material.

Node node = Model.GetSelectedNode( i ).GetNode();

if( node.IsDerived( Material ) )
{
   Model.SetActiveMaterial ( (Material)node );
}

Working Sample Code

For sample code: