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.
See Also: Materials, ShaderLab documentation.