TMP_Sprite.cs 785 Bytes
Newer Older
BlackAngle233's avatar
212    
BlackAngle233 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;


namespace TMPro
{

    // Class which contains the Sprite Info for each sprite contained in the sprite asset.
    [Serializable]
    public class TMP_Sprite : TMP_TextElement_Legacy
    {
        //public int fileID;
        //public int id;
        public string name;
        public int hashCode;
        public int unicode;
        //public float x;
        //public float y;
        //public float width;
        //public float height;
        public Vector2 pivot;
        //public float xOffset; // Pivot X
        //public float yOffset; // Pivot Y
        //public float xAdvance;
        //public float scale;

        public Sprite sprite;
    }
BlackAngle233's avatar
BlackAngle233 committed
31
}