MaterialDescription.TryGetProperty

Declaration

public bool TryGetProperty(string propertyName, out float value);

Declaration

public bool TryGetProperty(string propertyName, out Vector4 value);

Declaration

public bool TryGetProperty(string propertyName, out string value);

Declaration

public bool TryGetProperty(string propertyName, out AssetImporters.TexturePropertyDescription value);

Parameters

propertyName Name of the property.
value The retrieved value.

Returns

bool Returns true if the property exists on the material. Returns false otherwise.

Description

Retrieves the value of a specified material property.


Did you find this page useful? Please give it a rating: