ドキュメント

Unity Engine

Unity Engine

GetShaderUserValue()

Returns the custom value assigned to this renderer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public uint GetShaderUserValue()

Returns

Type

Description

uintThe integer assigned to the renderer as a custom value.

Remarks

The
GetShaderUserValue
method returns the custom integer assigned to a renderer.
Note: By default, the renderer’s value is 0 unless explicitly assigned.