TryGetProperty
Retrieves the value of a specified material property.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.AssetImporters
- Assembly: UnityEditor.CoreModule
TryGetProperty(string, float)
Retrieves the value of a specified material property.
public bool TryGetProperty(string propertyName, out float value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the material. Returns false otherwise. |
TryGetProperty(string, Vector4)
Retrieves the value of a specified material property.
public bool TryGetProperty(string propertyName, out Vector4 value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the material. Returns false otherwise. |
TryGetProperty(string, string)
Retrieves the value of a specified material property.
public bool TryGetProperty(string propertyName, out string value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the material. Returns false otherwise. |
TryGetProperty(string, TexturePropertyDescription)
Retrieves the value of a specified material property.
public bool TryGetProperty(string propertyName, out TexturePropertyDescription value)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the property exists on the material. Returns false otherwise. |