Contents

replaceMaterial(at:with:)

Replaces a material attached to the geometry with another.

Declaration

func replaceMaterial(at index: Int, with material: SCNMaterial)

Parameters

  • index:

    The index of the attached material to be replaced.

  • material:

    The material with which to replace the attached material.

See Also

Managing a Geometry’s Materials