Class TMP_SpriteAsset
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
[ExcludeFromPreset]
public class TMP_SpriteAsset : TMP_Asset
Fields
Name | Description |
---|---|
fallback |
List which contains the Fallback font assets for this font. |
sprite |
|
sprite |
Properties
Name | Description |
---|---|
face |
Information about the sprite asset's face. |
sprite |
Dictionary used to lookup sprite characters by their unicode value. |
sprite |
|
sprite |
|
version | The version of the sprite asset class. Version 1.1.0 updates the asset data structure to be compatible with new font asset structure. |
Methods
Name | Description |
---|---|
Get |
Function which returns the sprite index using the hashcode of the name |
Get |
Returns the index of the sprite for the given name. |
Get |
Returns the index of the sprite for the given unicode value. |
Search |
Search the given sprite asset and fallbacks for a sprite whose hash code value of its name matches the target hash code. |
Search |
Search through the given sprite asset and its fallbacks for the specified sprite matching the given unicode character. |
Sort |
Sort the sprite glyph table by glyph index. |
Update |
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. |