Hue Preserving Color Blending
TMP_Sprite.cs
1 using UnityEngine;
2 using System;
3 using System.Collections;
4 using System.Collections.Generic;
5 
6 
7 namespace TMPro
8 {
9 
10  // Class which contains the Sprite Info for each sprite contained in the sprite asset.
11  [Serializable]
12  public class TMP_Sprite : TMP_TextElement
13  {
14  //public int fileID;
15  //public int id;
16  public string name;
17  public int hashCode;
18  public int unicode;
19  //public float x;
20  //public float y;
21  //public float width;
22  //public float height;
23  public Vector2 pivot;
24  //public float xOffset; // Pivot X
25  //public float yOffset; // Pivot Y
26  //public float xAdvance;
27  //public float scale;
28 
29  public Sprite sprite;
30  }
31 }
Base class for all text elements like characters (glyphs) and sprites.