TMP_Sprite.cs 755 B

12345678910111213141516171819202122232425262728293031
  1. using UnityEngine;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. namespace TMPro
  6. {
  7. // Class which contains the Sprite Info for each sprite contained in the sprite asset.
  8. [Serializable]
  9. public class TMP_Sprite : TMP_TextElement_Legacy
  10. {
  11. //public int fileID;
  12. //public int id;
  13. public string name;
  14. public int hashCode;
  15. public int unicode;
  16. //public float x;
  17. //public float y;
  18. //public float width;
  19. //public float height;
  20. public Vector2 pivot;
  21. //public float xOffset; // Pivot X
  22. //public float yOffset; // Pivot Y
  23. //public float xAdvance;
  24. //public float scale;
  25. public Sprite sprite;
  26. }
  27. }