Material.IsPropertyOverriden

Switch to Manual

Declaration

public bool IsPropertyOverriden(string name);

Declaration

public bool IsPropertyOverriden(int nameID);

Parameters

nameID Property name ID, use Shader.PropertyToID to get it.
name Property name, e.g. "_SrcBlend".

Returns

bool Returns true if the property you pass in is overriden by this material. Otherwise, returns false.

Description

Checks whether a property is overriden by this material.

This method is Editor-only.

Additional resources: Material.ApplyPropertyOverride, Material.RevertPropertyOverride.


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