Text
class in UnityEngine.UI · UnityEngine.UI · inherits from MaskableGraphic
36 of 40 of Unity's members
In Tassix
Legacy UI text: lays its string out in the rect with TextGenerator (rasterizing glyphs into the font's texture) and draws a quad per glyph. Also a layout element: its preferred size is the text's.
Properties 24
bool alignByGeometry { get; set; }TextAnchor alignment { get; set; }TextGenerator cachedTextGenerator { get; }TextGenerator cachedTextGeneratorForLayout { get; }virtual float flexibleHeight { get; }virtual float flexibleWidth { get; }Font? font { get; set; }int fontSize { get; set; }FontStyle fontStyle { get; set; }HorizontalWrapMode horizontalOverflow { get; set; }virtual int layoutPriority { get; }float lineSpacing { get; set; }Texture mainTexture { get; }virtual float minHeight { get; }virtual float minWidth { get; }float pixelsPerUnit { get; }Screen pixels per canvas unit: the canvas's scale factor (fonts are dynamic).
virtual float preferredHeight { get; }virtual float preferredWidth { get; }bool resizeTextForBestFit { get; set; }int resizeTextMaxSize { get; set; }int resizeTextMinSize { get; set; }bool supportRichText { get; set; }virtual string text { get; set; }VerticalWrapMode verticalOverflow { get; set; }Methods 6
virtual void CalculateLayoutInputHorizontal()virtual void CalculateLayoutInputVertical()void FontTextureChanged()TextGenerationSettings GetGenerationSettings(Vector2 extents)static Vector2 GetTextAnchorPivot(TextAnchor anchor)string ToString()Not in Tassix yet 4
OnRebuildRequested OnValidate Reset m_DisableFontTextureRebuiltCallback