Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.

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

colorThe color of the sprite used for rendering.
maskInteractionThe mask interaction when the sprite is rendered with sprite masks.
spriteThe sprite used for rendering.