FontIconSet Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Unity object for managing a set of character icons for use with MRTK UX via Unity text components.
[UnityEngine.CreateAssetMenu(fileName="MRTK_UX_FontIconSet_New", menuName="MRTK/UX/Font Icon Set")]
public class FontIconSet : UnityEngine.ScriptableObject
[<UnityEngine.CreateAssetMenu(fileName="MRTK_UX_FontIconSet_New", menuName="MRTK/UX/Font Icon Set")>]
type FontIconSet = class
inherit ScriptableObject
Public Class FontIconSet
Inherits ScriptableObject
- Inheritance
-
UnityEngine.ScriptableObjectFontIconSet
- Attributes
-
UnityEngine.CreateAssetMenuAttribute
This is intended to be used with FontIconSelector, which can be used to set the desired static icon for a Unity text component, and can also bind to a data source that can select an icon by its name.
When using a style sheet, it is important to use a style that maps to the desired text font asset by its name and any other styling desired when rendered, such as size and color.
Glyph |
A mapping between icon names and the unicode value of the glyph it describes. |
Icon |
Any text font asset that contains the desired icons as glyphs that map to Unicode character values. |
Optional |
Optional material to use for rendering glyphs in editor. |
Add |
Add icon to the available set based on a glyph in the TMP_FontAsset. |
Convert |
Converts a unicode string to a uint code (for use with TextMeshPro). |
Convert |
Converts a unicode value to a string. |
Remove |
Remove an icon from available set by its name. |
Try |
Try to get a glyph icon's unicode value by name. |
Update |
Update the name of an icon. |
Proizvod | Verzije |
---|---|
MRTK3 UX Core | 3.0, 3.1, 3.2 |