Class TextContainer
Inheritance
TextContainer
Inherited Members
UnityEngine.EventSystems.UIBehaviour.OnValidate()
UnityEngine.EventSystems.UIBehaviour.Reset()
Namespace: TMPro
Syntax
[RequireComponent(typeof(RectTransform))]
[AddComponentMenu("Layout/Text Container")]
public class TextContainer : UIBehaviour
Properties
anchorPosition
Declaration
public TextContainerAnchors anchorPosition { get; set; }
Property Value
corners
Declaration
public Vector3[] corners { get; }
Property Value
hasChanged
Declaration
public bool hasChanged { get; set; }
Property Value
height
Declaration
public float height { get; set; }
Property Value
isAutoFitting
Declaration
public bool isAutoFitting { get; set; }
Property Value
isDefaultHeight
Declaration
public bool isDefaultHeight { get; }
Property Value
isDefaultWidth
Declaration
public bool isDefaultWidth { get; }
Property Value
margins
Declaration
public Vector4 margins { get; set; }
Property Value
pivot
Declaration
public Vector2 pivot { get; set; }
Property Value
rect
Declaration
public Rect rect { get; set; }
Property Value
rectTransform
The RectTransform used by the object
Declaration
public RectTransform rectTransform { get; }
Property Value
size
Declaration
public Vector2 size { get; set; }
Property Value
textMeshPro
Declaration
public TextMeshPro textMeshPro { get; }
Property Value
width
Declaration
public float width { get; set; }
Property Value
worldCorners
Declaration
public Vector3[] worldCorners { get; }
Property Value
Methods
Awake()
Declaration
protected override void Awake()
Overrides
OnDisable()
Declaration
protected override void OnDisable()
Overrides
OnEnable()
Declaration
protected override void OnEnable()
Overrides
OnRectTransformDimensionsChange()
Callback from Unity to handle RectTransform changes.
Declaration
protected override void OnRectTransformDimensionsChange()
Overrides