C# Class UnityEngine.UI.Text

Inheritance: UnityEngine.UI.MaskableGraphic, ILayoutElement
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Properties

Property Type Description
s_DefaultText UnityEngine.Material

Public Methods

Method Description
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

Protected Methods

Method Description
OnDisable ( ) : void

See MonoBehaviour.OnDisable.

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

Private Methods

Method Description
AssignDefaultFont ( ) : void

Method Details

CalculateLayoutInputHorizontal() public method

Called by the layout system.

public CalculateLayoutInputHorizontal ( ) : void
return void

CalculateLayoutInputVertical() public method

Called by the layout system.

public CalculateLayoutInputVertical ( ) : void
return void

FontTextureChanged() public method

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

public FontTextureChanged ( ) : void
return void

GetGenerationSettings() public method

Convenience function to populate the generation setting for the text.

public GetGenerationSettings ( Vector2 extents ) : TextGenerationSettings
extents Vector2 The extents the text can draw in.
return UnityEngine.TextGenerationSettings

GetTextAnchorPivot() public static method

Convenience function to determine the vector offset of the anchor.

public static GetTextAnchorPivot ( TextAnchor anchor ) : Vector2
anchor TextAnchor
return Vector2

OnDisable() protected method

See MonoBehaviour.OnDisable.

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnPopulateMesh() protected method

protected OnPopulateMesh ( VertexHelper toFill ) : void
toFill VertexHelper
return void

OnRebuildRequested() public method

public OnRebuildRequested ( ) : void
return void

OnValidate() protected method

protected OnValidate ( ) : void
return void

Reset() protected method

protected Reset ( ) : void
return void

Text() protected method

protected Text ( ) : System
return System

UpdateGeometry() protected method

protected UpdateGeometry ( ) : void
return void

Property Details

s_DefaultText protected_oe static_oe property

protected static Material,UnityEngine s_DefaultText
return UnityEngine.Material