C# Класс UnityEngine.UI.Text

Наследование: UnityEngine.UI.MaskableGraphic, ILayoutElement
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
s_DefaultText UnityEngine.Material

Открытые методы

Метод Описание
CalculateLayoutInputHorizontal ( ) : void

Called by the layout system.

CalculateLayoutInputVertical ( ) : void

Called by the layout system.

FontTextureChanged ( ) : void

Called by the [FontUpdateTracker] when the texture associated with a font is modified.

GetGenerationSettings ( Vector2 extents ) : TextGenerationSettings

Convenience function to populate the generation setting for the text.

GetTextAnchorPivot ( TextAnchor anchor ) : Vector2

Convenience function to determine the vector offset of the anchor.

OnRebuildRequested ( ) : void

Защищенные методы

Метод Описание
OnDisable ( ) : void

See MonoBehaviour.OnDisable.

OnEnable ( ) : void
OnPopulateMesh ( VertexHelper toFill ) : void
OnValidate ( ) : void
Reset ( ) : void
Text ( ) : System
UpdateGeometry ( ) : void

Приватные методы

Метод Описание
AssignDefaultFont ( ) : void

Описание методов

CalculateLayoutInputHorizontal() публичный Метод

Called by the layout system.

public CalculateLayoutInputHorizontal ( ) : void
Результат void

CalculateLayoutInputVertical() публичный Метод

Called by the layout system.

public CalculateLayoutInputVertical ( ) : void
Результат void

FontTextureChanged() публичный Метод

Called by the [FontUpdateTracker] when the texture associated with a font is modified.

public FontTextureChanged ( ) : void
Результат void

GetGenerationSettings() публичный Метод

Convenience function to populate the generation setting for the text.

public GetGenerationSettings ( Vector2 extents ) : TextGenerationSettings
extents Vector2 The extents the text can draw in.
Результат UnityEngine.TextGenerationSettings

GetTextAnchorPivot() публичный статический Метод

Convenience function to determine the vector offset of the anchor.

public static GetTextAnchorPivot ( TextAnchor anchor ) : Vector2
anchor TextAnchor
Результат Vector2

OnDisable() защищенный Метод

See MonoBehaviour.OnDisable.

protected OnDisable ( ) : void
Результат void

OnEnable() защищенный Метод

protected OnEnable ( ) : void
Результат void

OnPopulateMesh() защищенный Метод

protected OnPopulateMesh ( VertexHelper toFill ) : void
toFill VertexHelper
Результат void

OnRebuildRequested() публичный Метод

public OnRebuildRequested ( ) : void
Результат void

OnValidate() защищенный Метод

protected OnValidate ( ) : void
Результат void

Reset() защищенный Метод

protected Reset ( ) : void
Результат void

Text() защищенный Метод

protected Text ( ) : System
Результат System

UpdateGeometry() защищенный Метод

protected UpdateGeometry ( ) : void
Результат void

Описание свойств

s_DefaultText защищенное статическое свойство

protected static Material,UnityEngine s_DefaultText
Результат UnityEngine.Material