Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsPropertyOverriden

Checks whether a property is overriden by this material.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

IsPropertyOverriden(int)

Checks whether a property is overriden by this material.
public bool IsPropertyOverriden(int nameID)

Parameters

nameID

Property name ID, use Shader.PropertyToID to get it.

Returns

Type

Description

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

Remarks

This method is Editor-only.

IsPropertyOverriden(string)

Checks whether a property is overriden by this material.
public bool IsPropertyOverriden(string name)

Parameters

name

Property name, e.g. "_SrcBlend".

Returns

Type

Description

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

Remarks

This method is Editor-only.