Свойство | Type | Description | |
---|---|---|---|
lineSpacing | float | ||
pixelPerfect | bool | ||
spacing | float |
Свойство | Type | Description | |
---|---|---|---|
FillTextData | int | ||
GetXAnchorForWidth | float | ||
GetYAnchorForHeight | float |
Méthode | Description | |
---|---|---|
Awake ( ) : void | ||
Commit ( ) : void |
Call commit after changing properties to commit the changes. This is deffered to a commit call as more than one operation may require rebuilding the buffers, eg. scaling and changing text. This will be wasteful if performed multiple times.
|
|
ForceBuild ( ) : void | ||
FormatText ( ) : void | ||
GetMeshDimensionsForString ( string str ) : Vector2 |
Calculates the mesh dimensions for the given string and returns a width and height.
|
|
Init ( ) : void | ||
Init ( bool force ) : void | ||
InitInstance ( ) : void | ||
MakePixelPerfect ( ) : void |
Makes the text mesh pixel perfect to the active camera. Automatically detects tk2dCamera if present Otherwise uses Camera.main
|
|
NumDrawnCharacters ( ) : int |
Returns the number of characters drawn for the currently active string. This may be less than string.Length - some characters are used as escape codes for switching texture gradient ^0-^9 Also, there might be more characters in the string than have been allocated for the textmesh, in which case the string will be truncated.
|
|
NumTotalCharacters ( ) : int |
Returns the number of characters excluding texture gradient escape codes.
|
|
PostAlignTextData ( int targetStart, int targetEnd, float offsetX ) : void | ||
UpdateMaterial ( ) : void | ||
UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool |
Méthode | Description | |
---|---|---|
OnDestroy ( ) : void |
Méthode | Description | |
---|---|---|
FillTextData ( ) : int | ||
GetXAnchorForWidth ( float lineWidth ) : float | ||
GetYAnchorForHeight ( float textHeight ) : float |
public GetMeshDimensionsForString ( string str ) : Vector2 | ||
str | string | |
Résultat | Vector2 |
public PostAlignTextData ( int targetStart, int targetEnd, float offsetX ) : void | ||
targetStart | int | |
targetEnd | int | |
offsetX | float | |
Résultat | void |
public UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool | ||
spriteCollection | tk2dSpriteCollectionData, | |
Résultat | bool |