Language
Edit

FontIconSelector Class

Definition

Allows the user to select a specific icon for display via a Unity text component.

[UnityEngine.AddComponentMenu("MRTK/UX/Font Icon Selector")]
public class FontIconSelector : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/Font Icon Selector")>]
type FontIconSelector = class
    inherit MonoBehaviour
Public Class FontIconSelector
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
FontIconSelector
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

Name Description
FontIconSelector()

Properties

Name Description
CurrentIconName

The currently selected icon's name, as defined by the FontIcons.

FontIcons

The FontIconSet that contains the icons available for use, and their human-readable names.

IconFontAsset

A TextMeshPro Font Asset that contains the desired icons as glyphs that map to Unicode character values.

TextMeshProComponent

The Unity text component used to show the icon.

Applies to