SpriteParams
Information about a sprite for rendering methods.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Struct
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public readonly struct SpriteParams
Remarks
This struct defines common parameters shared across various rendering functions.
Additional Resources: Graphics.RenderSprite, Graphics.RenderSpriteInstanced.
Constructors
Constructor | Description |
|---|---|
| SpriteParams(UnityEngine.Sprite) | Creates a new set of sprite parameters. |
| SpriteParams(UnityEngine.Sprite,UnityEngine.Color,UnityEngine.SpriteMaskInteraction) | Creates a new set of sprite parameters. |
Properties
Property | Description |
|---|---|
| color | The color of the sprite used for rendering. |
| maskInteraction | The mask interaction when the sprite is rendered with sprite masks. |
| sprite | The sprite used for rendering. |