Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetShaderUserValue()

Returns the custom value assigned to this renderer.
Read time 1 minuteLast updated 4 days ago

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.