GetShaderUserValue()
Returns the custom value assigned to this renderer.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.U2D
- Assembly: UnityEngine.SpriteShapeModule
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: SpriteShapeRenderer.SetShaderUserValue.