Material.HasProperty

Switch to Manual
public bool HasProperty(string name);
public bool HasProperty(int nameID);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.

Description

Checks if material's shader has a property of a given name.

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