SetAllLayersMaterial

bool SetAllLayersMaterial(this CompoundStructure cs, Material material)

Sets all layers to use the same material.

Parameters

  • csCompoundStructure

    The compound structure.

  • materialMaterial

    The material to assign to all layers.

Returns: True if successful; otherwise false.

Example

cs.SetAllLayersMaterial(newMat);