GetShaderUserValue()
Returns the custom value assigned to this renderer.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
public uint GetShaderUserValue()
Returns
Type | Description |
|---|---|
| uint | The integer assigned to the renderer as a custom value. |
Remarks
The method returns the custom integer assigned to a renderer.
GetShaderUserValueNote: By default, the renderer’s value is 0 unless explicitly assigned.
Additional Resources: TilemapRenderer.SetShaderUserValue