Class TextContainer
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[RequireComponent(typeof(RectTransform))]
public class TextContainer : UIBehaviour
Properties
anchorPosition
Declaration
public TextContainerAnchors anchorPosition { get; set; }
Property Value
Type | Description |
---|---|
TextContainerAnchors |
corners
Declaration
public Vector3[] corners { get; }
Property Value
Type | Description |
---|---|
Vector3[] |
hasChanged
Declaration
public bool hasChanged { get; set; }
Property Value
Type | Description |
---|---|
bool |
height
Declaration
public float height { get; set; }
Property Value
Type | Description |
---|---|
float |
isAutoFitting
Declaration
public bool isAutoFitting { get; set; }
Property Value
Type | Description |
---|---|
bool |
isDefaultHeight
Declaration
public bool isDefaultHeight { get; }
Property Value
Type | Description |
---|---|
bool |
isDefaultWidth
Declaration
public bool isDefaultWidth { get; }
Property Value
Type | Description |
---|---|
bool |
margins
Declaration
public Vector4 margins { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
pivot
Declaration
public Vector2 pivot { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
rect
Declaration
public Rect rect { get; set; }
Property Value
Type | Description |
---|---|
Rect |
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
Type | Description |
---|---|
Vector2 |
textMeshPro
Declaration
public TextMeshPro textMeshPro { get; }
Property Value
Type | Description |
---|---|
TextMeshPro |
width
Declaration
public float width { get; set; }
Property Value
Type | Description |
---|---|
float |
worldCorners
Declaration
public Vector3[] worldCorners { get; }
Property Value
Type | Description |
---|---|
Vector3[] |
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
OnValidate()
Declaration
protected override void OnValidate()