docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_SpriteCharacter

    A basic element of text representing a pictograph, image, sprite or emoji.

    Inheritance
    System.Object
    TMP_TextElement
    TMP_SpriteCharacter
    Inherited Members
    TMP_TextElement.elementType
    TMP_TextElement.unicode
    TMP_TextElement.glyph
    TMP_TextElement.glyphIndex
    TMP_TextElement.scale
    TMP_TextElement.m_ElementType
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: TMPro
    Syntax
    [Serializable]
    public class TMP_SpriteCharacter : TMP_TextElement

    Constructors

    TMP_SpriteCharacter()

    Default constructor.

    Declaration
    public TMP_SpriteCharacter()

    TMP_SpriteCharacter(UInt32, TMP_SpriteGlyph)

    Constructor for new sprite character.

    Declaration
    public TMP_SpriteCharacter(uint unicode, TMP_SpriteGlyph glyph)
    Parameters
    Type Name Description
    System.UInt32 unicode

    Unicode value of the sprite character.

    TMP_SpriteGlyph glyph

    Glyph used by the sprite character.

    Properties

    hashCode

    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.

    Declaration
    public int hashCode { get; }
    Property Value
    Type Description
    System.Int32

    name

    The name of the sprite element.

    Declaration
    public string name { get; set; }
    Property Value
    Type Description
    System.String
    Back to top
    Copyright © 2025 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 02 April 2025