C# Class Epigene.UI.UIText

Inheritance: UnityEngine.MonoBehaviour, UIObject
Afficher le fichier Open project: fi-content2-games-platform/FIcontent.Gaming.Enabler.phenomobilecharactermanager Class Usage Examples

Méthodes publiques

Свойство Type Description
format string
isLocalized bool
isNumeric bool
maxLength int
sortingOrder int
text string
textId string
wrapSize int

Méthodes publiques

Méthode Description
Awake ( ) : void

Set up the UIText with using Text

GetType ( ) : UIType

Get the type of the this item.

OnEnable ( ) : void

Start will update the localization if required.

Parse ( object>.Dictionary dict ) : void

Parse the content of the dictionary and create a new gameobject with this parameters

Update ( ) : void

This will update the text based on formatting and localization settings. The localization will be updated only in Editor Mode to avoid unnecessary performance overhead.

WordWrap ( string text, int width ) : string

Word wraps the given text to fit within the specified width.

Private Methods

Méthode Description
BreakLine ( string text, int pos, int max ) : int

Locates position to break the given line so as to avoid breaking words.

Method Details

Awake() public méthode

Set up the UIText with using Text
public Awake ( ) : void
Résultat void

GetType() public méthode

Get the type of the this item.
public GetType ( ) : UIType
Résultat UIType

OnEnable() public méthode

Start will update the localization if required.
public OnEnable ( ) : void
Résultat void

Parse() public méthode

Parse the content of the dictionary and create a new gameobject with this parameters
public Parse ( object>.Dictionary dict ) : void
dict object>.Dictionary
Résultat void

Update() public méthode

This will update the text based on formatting and localization settings. The localization will be updated only in Editor Mode to avoid unnecessary performance overhead.
public Update ( ) : void
Résultat void

WordWrap() public static méthode

Word wraps the given text to fit within the specified width.
public static WordWrap ( string text, int width ) : string
text string Text to be word wrapped
width int Width, in characters, to which the text /// should be word wrapped
Résultat string

Property Details

format public_oe property

format of the text, use it with isNumaric
public string format
Résultat string

isLocalized public_oe property

Set to true if need localization localization will override the mesh text in every loop
public bool isLocalized
Résultat bool

isNumeric public_oe property

set to true if you want to format the value as numeric
public bool isNumeric
Résultat bool

maxLength public_oe property

maximum length to print out
public int maxLength
Résultat int

sortingOrder public_oe property

public int sortingOrder
Résultat int

text public_oe property

local text of the ui without any formatting and localization
public string text
Résultat string

textId public_oe property

localized text id
public string textId
Résultat string

wrapSize public_oe property

Word wrap size. Word wrap is used if this value is greater then 0
public int wrapSize
Résultat int