Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
ClosepropertyName | Name of the material property. |
properties | The array of available properties. |
propertyIsMandatory | If true then this method will throw an exception if a property with propertyName was not found. |
MaterialProperty The material property found, otherwise null.
Find shader properties.
Utility method for finding a MaterialProperty by name.