GetShaderUserValue()
Returns the custom value assigned to this renderer.
阅读时间1 分钟最后更新于 23 天前
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