summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_SpriteCharacter.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
commit3af4c218c0e70167db23a6303d2af30aff37d2fe (patch)
tree927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_SpriteCharacter.cs
parentb6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff)
downloadProject-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_SpriteCharacter.cs')
-rw-r--r--Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_SpriteCharacter.cs74
1 files changed, 0 insertions, 74 deletions
diff --git a/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_SpriteCharacter.cs b/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_SpriteCharacter.cs
deleted file mode 100644
index 48af7a5..0000000
--- a/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_SpriteCharacter.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using UnityEngine;
-
-namespace TMPro
-{
- /// <summary>
- /// A basic element of text representing a pictograph, image, sprite or emoji.
- /// </summary>
- [Serializable]
- public class TMP_SpriteCharacter : TMP_TextElement
- {
- /// <summary>
- /// The name of the sprite element.
- /// </summary>
- public string name
- {
- get { return m_Name; }
- set
- {
- if (value == m_Name)
- return;
-
- m_Name = value;
- m_HashCode = TMP_TextParsingUtilities.GetHashCodeCaseSensitive(m_Name);
- }
- }
-
- /// <summary>
- /// The hashcode value which is computed from the name of the sprite element.
- /// This value is read-only and updated when the name of the text sprite is changed.
- /// </summary>
- public int hashCode { get { return m_HashCode; } }
-
-
- // =============================================
- // Private backing fields for public properties.
- // =============================================
-
- [SerializeField]
- private string m_Name;
-
- [SerializeField]
- private int m_HashCode;
-
-
- // ********************
- // CONSTRUCTORS
- // ********************
-
- /// <summary>
- /// Default constructor.
- /// </summary>
- public TMP_SpriteCharacter()
- {
- m_ElementType = TextElementType.Sprite;
- }
-
- /// <summary>
- /// Constructor for new sprite character.
- /// </summary>
- /// <param name="unicode">Unicode value of the sprite character.</param>
- /// <param name="glyph">Glyph used by the sprite character.</param>
- public TMP_SpriteCharacter(uint unicode, TMP_SpriteGlyph glyph)
- {
- m_ElementType = TextElementType.Sprite;
-
- this.unicode = unicode;
- this.glyphIndex = glyph.index;
- this.glyph = glyph;
- this.scale = 1.0f;
- }
-
- }
-} \ No newline at end of file