Contents

insertMaterial(_:at:)

Attaches a material to the geometry at the specified index.

Declaration

func insertMaterial(_ material: SCNMaterial, at index: Int)

Parameters

  • material:

    The material to attach.

  • index:

    The location in the geometry’s Materials array at which to add the new material.

See Also

Managing a Geometry’s Materials