Instance Method


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


- (void)setProperty:(MDLMaterialProperty *)property;



The material property object to add to the material.


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

- propertyNamed:

Returns the material property with the specified name.

- propertyWithSemantic:

Returns the material property for the specified material semantic.

- removeProperty:

Removes the specified material property from the material.

- 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