propertyNamed(_:)
Returns the material property with the specified name.
Declaration
func propertyNamed(_ name: String) -> MDLMaterialProperty?Parameters
- name:
The Name value of a material property in the material.
Return Value
The material property with the specified name, or nil if the material does not contain a material property with that name.
Discussion
Material property names are not related to their use in rendering. Instead, you can assign descriptive names to material properties and use this method to keep track of them.