프로퍼티 | 타입 | 설명 | |
---|---|---|---|
lineSpacing | float | ||
pixelPerfect | bool | ||
spacing | float |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
FillTextData | int | ||
GetXAnchorForWidth | float | ||
GetYAnchorForHeight | float |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
OnDestroy ( ) : void |
메소드 | 설명 | |
---|---|---|
FillTextData ( ) : int | ||
GetXAnchorForWidth ( float lineWidth ) : float | ||
GetYAnchorForHeight ( float textHeight ) : float |
public GetMeshDimensionsForString ( string str ) : Vector2 | ||
str | string | |
리턴 | Vector2 |
public PostAlignTextData ( int targetStart, int targetEnd, float offsetX ) : void | ||
targetStart | int | |
targetEnd | int | |
offsetX | float | |
리턴 | void |
public UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool | ||
spriteCollection | tk2dSpriteCollectionData, | |
리턴 | bool |