文档

Unity Engine

Unity Engine

IsPropertyOverriden

Checks whether a property is overriden by this material.
阅读时间1 分钟最后更新于 1 个月前

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.