This version of Unity is unsupported.

Material.HasProperty

Switch to Manual

Declaration

public bool HasProperty(string name);

Declaration

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.