Skip to content

Api > TextAnchor


TextAnchor⚓︎

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

Elements⚓︎

Element Description
TextAnchor.LowerCenter Text is anchored in lower side, centered horizontally.
TextAnchor.LowerLeft Text is anchored in lower left corner.
TextAnchor.LowerRight Text is anchored in lower right corner.
TextAnchor.MiddleCenter Text is centered both horizontally and vertically.
TextAnchor.MiddleLeft Text is anchored in left side, centered vertically.
TextAnchor.MiddleRight Text is anchored in right side, centered vertically.
TextAnchor.UpperCenter Text is anchored in upper side, centered horizontally.
TextAnchor.UpperLeft Text is anchored in upper left corner.
TextAnchor.UpperRight Text is anchored in upper right corner.