Instance Method

remove(_:)

Removes the specified material property from the material.

Declaration

func remove(_ property: MDLMaterialProperty)

Parameters

property

The material property object to remove.

Discussion

This method has no effect if the specified material property is not contained in the material.

See Also

Working with Individual Material Properties

func propertyNamed(String) -> MDLMaterialProperty?

Returns the material property with the specified name.

func property(with: MDLMaterialSemantic) -> MDLMaterialProperty?

Returns the material property for the specified material semantic.

func setProperty(MDLMaterialProperty)

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

func removeAllProperties()

Removes all material properties from the material.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software