int TMPro.TMP_SpriteAsset.GetSpriteIndexFromHashcode |
( |
int |
hashCode | ) |
|
|
inline |
Function which returns the sprite index using the hashcode of the name
- Parameters
-
- Returns
int TMPro.TMP_SpriteAsset.GetSpriteIndexFromName |
( |
string |
name | ) |
|
|
inline |
Returns the index of the sprite for the given name.
- Parameters
-
- Returns
int TMPro.TMP_SpriteAsset.GetSpriteIndexFromUnicode |
( |
int |
unicode | ) |
|
|
inline |
Returns the index of the sprite for the given unicode value.
- Parameters
-
- Returns
static TMP_SpriteAsset TMPro.TMP_SpriteAsset.SearchForSpriteByHashCode |
( |
TMP_SpriteAsset |
spriteAsset, |
|
|
int |
hashCode, |
|
|
bool |
includeFallbacks, |
|
|
out int |
spriteIndex |
|
) |
| |
|
inlinestatic |
Search the given sprite asset and fallbacks for a sprite whose hash code value of its name matches the target hash code.
- Parameters
-
spriteAsset | The Sprite Asset to search for the given sprite whose name matches the hashcode value |
hashCode | The hash code value matching the name of the sprite |
includeFallbacks | Include fallback sprite assets in the search |
spriteIndex | The index of the sprite matching the provided hash code |
- Returns
- The Sprite Asset that contains the sprite
static TMP_SpriteAsset TMPro.TMP_SpriteAsset.SearchForSpriteByUnicode |
( |
TMP_SpriteAsset |
spriteAsset, |
|
|
int |
unicode, |
|
|
bool |
includeFallbacks, |
|
|
out int |
spriteIndex |
|
) |
| |
|
inlinestatic |
Search through the given sprite asset and its fallbacks for the specified sprite matching the given unicode character.
- Parameters
-
spriteAsset | The font asset to search for the given character. |
unicode | The character to find. |
glyph | out parameter containing the glyph for the specified character (if found). |
- Returns
void TMPro.TMP_SpriteAsset.UpdateLookupTables |
( |
| ) |
|
|
inline |
Function to update the sprite name and unicode lookup tables. This function should be called when a sprite's name or unicode value changes or when a new sprite is added.
Dictionary used to lookup the index of a given sprite based on a Unicode value.
List which contains the Fallback font assets for this font.
List<TMP_Sprite> TMPro.TMP_SpriteAsset.spriteInfoList |
Texture TMPro.TMP_SpriteAsset.spriteSheet |
Static reference to the default font asset included with TextMesh Pro.
The documentation for this class was generated from the following file: