Class TextContainer
Inheritance
TextContainer
Namespace: TMPro
Syntax
public class TextContainer : UIBehaviour
Properties
anchorPosition
Declaration
public TextContainerAnchors anchorPosition { get; set; }
Property Value
corners
Declaration
public Vector3[] corners { get; }
Property Value
Type |
Description |
Vector3[] |
|
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
Type |
Description |
RectTransform |
|
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
Type |
Description |
Vector3[] |
|
Methods
Awake()
Declaration
protected override void Awake()
OnDisable()
Declaration
protected override void OnDisable()
OnEnable()
Declaration
protected override void OnEnable()
OnRectTransformDimensionsChange()
Callback from Unity to handle RectTransform changes.
Declaration
protected override void OnRectTransformDimensionsChange()