Version: 2021.3
언어: 한국어
protected static MaterialProperty FindProperty (string propertyName, MaterialProperty[] properties);
protected static MaterialProperty FindProperty (string propertyName, MaterialProperty[] properties, bool propertyIsMandatory);

파라미터

propertyName The name of the material property.
properties The array of available material 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.

This is a utility method that finds a MaterialProperty by name.