Skip to main content

TextAnchor

Where the anchor of the text is placed. This is used by TextMesh.anchor property.

Elements

ElementDescription
TextAnchor.LowerCenterText is anchored in lower side, centered horizontally.
TextAnchor.LowerLeftText is anchored in lower left corner.
TextAnchor.LowerRightText is anchored in lower right corner.
TextAnchor.MiddleCenterText is centered both horizontally and vertically.
TextAnchor.MiddleLeftText is anchored in left side, centered vertically.
TextAnchor.MiddleRightText is anchored in right side, centered vertically.
TextAnchor.UpperCenterText is anchored in upper side, centered horizontally.
TextAnchor.UpperLeftText is anchored in upper left corner.
TextAnchor.UpperRightText is anchored in upper right corner.