文档

Unity Engine


Unity Engine


GetShaderUserValue()

Returns the custom value assigned to this renderer.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.