Method FindProperty
FindProperty(string, MaterialProperty[])
Searches and tries to find a property in an array of properties.
선언
public static MaterialProperty FindProperty(string propertyName, MaterialProperty[] properties)
파라미터
타입 | 이름 | 설명 |
---|---|---|
string | propertyName | The property to find. |
MaterialProperty[] | properties | Array of properties to search in. |
반환
타입 | 설명 |
---|---|
MaterialProperty | A MaterialProperty instance for the property. |
FindProperty(string, MaterialProperty[], bool)
Searches and tries to find a property in an array of properties.
선언
public static MaterialProperty FindProperty(string propertyName, MaterialProperty[] properties, bool propertyIsMandatory)
파라미터
타입 | 이름 | 설명 |
---|---|---|
string | propertyName | The property to find. |
MaterialProperty[] | properties | Array of properties to search in. |
bool | propertyIsMandatory | Should throw exception if property is not found |
반환
타입 | 설명 |
---|---|
MaterialProperty | A MaterialProperty instance for the property. |
예외
타입 | 조건 |
---|---|
ArgumentException |