Scripting API

TextContainer

class in TMPro · Unity.TextMeshPro · inherits from UIBehaviour

20 of 21 of Unity's members
In Tassix

TextMeshPro's legacy text box (replaced by the RectTransform, which older projects still reference): its size and pivot are the RectTransform's, its margins kept as set.

Properties 15

TextContainerAnchors anchorPosition { get; set; }

Where the pivot sits: one of nine places, or Custom.

Vector3[] corners { get; }
bool hasChanged { get; set; }
float height { get; set; }
bool isAutoFitting { get; set; }
bool isDefaultHeight { get; }
bool isDefaultWidth { get; }
Vector4 margins { get; set; }
Vector2 pivot { get; set; }
Rect rect { get; set; }
RectTransform rectTransform { get; }
Vector2 size { get; set; }
TextMeshPro textMeshPro { get; }
float width { get; set; }
Vector3[] worldCorners { get; }

Not in Tassix yet 1

OnValidate