ModelNode.Material

Material Material{ get set }

Description

The Model associated with this node. May be null, or may also be re-used elsewhere.

Examples

foreach (ModelNode node in model.Nodes)
{
	// ModelNode.Material will often returned a shared resource, so
	// copy it if you don't wish to change all assets that share it.
	Material mat = node.Material.Copy();
	mat[MatParamName.ColorTint] = Color.HSV(0, 1, 1);
	node.Material = mat;
}




Found an issue with these docs, or have some additional questions? Create an Issue on Github!