ドキュメント

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.