Contents

setProperty(_:)

Adds a new material property to or replaces an existing material property in the material.

Declaration

func setProperty(_ property: MDLMaterialProperty)

Parameters

  • property:

    The material property object to add to the material.

Discussion

If the material already contains a material property with the same name or semantic, this method replaces that material property. Otherwise, this method adds the specified material property to the material.

See Also

Working with individual material properties