12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using UnityEngine.TextCore;
- namespace TMPro
- {
-
-
-
- [Serializable]
- public class TMP_Character : TMP_TextElement
- {
-
-
-
- public TMP_Character()
- {
- m_ElementType = TextElementType.Character;
- this.scale = 1.0f;
- }
-
-
-
-
-
- public TMP_Character(uint unicode, Glyph glyph)
- {
- m_ElementType = TextElementType.Character;
- this.unicode = unicode;
- this.textAsset = null;
- this.glyph = glyph;
- this.glyphIndex = glyph.index;
- this.scale = 1.0f;
- }
-
-
-
-
-
-
- public TMP_Character(uint unicode, TMP_FontAsset fontAsset, Glyph glyph)
- {
- m_ElementType = TextElementType.Character;
- this.unicode = unicode;
- this.textAsset = fontAsset;
- this.glyph = glyph;
- this.glyphIndex = glyph.index;
- this.scale = 1.0f;
- }
-
-
-
-
-
- internal TMP_Character(uint unicode, uint glyphIndex)
- {
- m_ElementType = TextElementType.Character;
- this.unicode = unicode;
- this.textAsset = null;
- this.glyph = null;
- this.glyphIndex = glyphIndex;
- this.scale = 1.0f;
- }
- }
- }
|