Click or drag to resize

UnityUITextMeshProGlyphHelper Class

A helper class to display Rewired glyphs and display names inline in TMPro Text (Unity UI). Parses tags within text and replaces them with Sprites or text. Enter text in this component's text field, not in the TMPro Text field. Text entered here will be parsed, then the Text Mesh Pro Text component will be updated with the text, including Sprite tags.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Rewired.Glyphs.UnityUIUnityUITextMeshProGlyphHelper

Namespace: Rewired.Glyphs.UnityUI
Assembly: Rewired_Glyphs (in Rewired_Glyphs.dll) Version: 0.0.0.0
Syntax
C#
public class UnityUITextMeshProGlyphHelper : MonoBehaviour

The UnityUITextMeshProGlyphHelper type exposes the following members.

Constructors
 NameDescription
Public methodUnityUITextMeshProGlyphHelperInitializes a new instance of the UnityUITextMeshProGlyphHelper class
Top
Properties
 NameDescription
Public propertyanimation
(Inherited from Component)
Obsolete
Public propertyaudio
(Inherited from Component)
Obsolete
Public propertybaseSpriteMaterial Optional material for Sprites. If blank, the default material will be used. Material is instantiated for each Sprite Asset, so making changes to values in the base material later will not affect Sprites. Changing the base material at runtime will copy only certain properties from the new material to Sprite materials.
Public propertycamera
(Inherited from Component)
Obsolete
Public propertycollider
(Inherited from Component)
Obsolete
Public propertycollider2D
(Inherited from Component)
Obsolete
Public propertyconstantForce
(Inherited from Component)
Obsolete
Public propertyenabled
(Inherited from Behaviour)
Public propertygameObject
(Inherited from Component)
Public propertyguiElement
(Inherited from Component)
Obsolete
Public propertyguiText
(Inherited from Component)
Obsolete
Public propertyguiTexture
(Inherited from Component)
Obsolete
Public propertyhideFlags
(Inherited from Object)
Public propertyhingeJoint
(Inherited from Component)
Obsolete
Public propertyisActiveAndEnabled
(Inherited from Behaviour)
Public propertyisRewiredElementAllowedHandler Allows you to filter which Action Element Maps are displayed by the rewiredElement tag. When searching for mappings in the Player, the handler will be invoked for each Action Element Map found. This allows you to, for example, allow only Action Element Maps belonging to a Controller Map in particular Map Category. ActionElementMap for properties which can be used as filtering criteria. IMPORTANT: By setting this value, you are taking over the responsibility for filtering mappings results entirely. The default filter removes disabled Action Element Maps and mappings in disabled Controller Maps. Disabled mappings are no longer removed when this handler is overriden with your own, so you must check the enabled states if you want to exclude these mappings. Note: This handler overrides any handler set in isActionElementMapAllowedHandler.
Public propertylight
(Inherited from Component)
Obsolete
Public propertyname
(Inherited from Object)
Public propertynetworkView
(Inherited from Component)
Obsolete
Public propertyoptions Optional reference to an object that defines options. If blank, the global default options will be used.
Public propertyoverrideSpriteMaterialProperties If enabled, local values such as Sprite color will be used instead of the value on the base material.
Public propertyparticleSystem
(Inherited from Component)
Obsolete
Public propertyrenderer
(Inherited from Component)
Obsolete
Public propertyrewiredElementResult2dSelectionHandler Allows you to evaluate all the results and decide which to display for the rewiredElement tag for two Actions. This only works if combining two Actions. If using a single Action, use rewiredElementResultSelectionHandler instead. After searching for mappings in the Player and collecting all possible results, the handler will be invoked. This can be used, for example, to display the second result found instead of the first. It could also be used to choose results from any user-defined criteria such as controller type, controller map cateogry, etc. ActionElementMap for properties which can be used as selection criteria. The list contains all results from the search of Action Element Maps. Each result can contain one result for each Action. Each Action result can contain either one or two Action Element Maps. The number of Action Element Maps returned depends on the bindings found. If a full-axis binding is found, it will be returned in the [!:a] field. If negative and positive split-axis bindings are found instead, at least one Action Element Map will be returned in the [!:a] (negative) or [!:b] (positive) field.
Public propertyrewiredElementResultSelectionHandler Allows you to evaluate all the results and decide which to display for the rewiredElement tag. This only works for single Actions. If combining two Actions, use rewiredElementResult2dSelectionHandler instead. After searching for mappings in the Player and collecting all possible results, the handler will be invoked. This can be used, for example, to display the second result found instead of the first. It could also be used to choose results from any user-defined criteria such as controller type, controller map cateogry, etc. ActionElementMap for properties which can be used as selection criteria. The list contains all results from the search of Action Element Maps given a particular Action Range. Each result can contain either one or two Action Element Maps. The number of Action Element Maps returned depends on the Action Range used for the search and the bindings found. For a full Action Range search, if a full-axis binding is found, it will be returned in the [!:a] field. If negative and positive split-axis bindings are found instead, at least one Action Element Map will be returned in the [!:a] (negative) or [!:b] (positive) field. For a positive/negative Action Range search, a single Action Element Map will be returned in the [!:a] field.
Public propertyrigidbody
(Inherited from Component)
Obsolete
Public propertyrigidbody2D
(Inherited from Component)
Obsolete
Public propertyrunInEditMode
(Inherited from MonoBehaviour)
Public propertyspriteMaterialProperties These properties will override the properties on the Sprite material if overrideSpriteMaterialProperties is true.
Public propertyspriteOptions Options that control how Text Mesh Pro displays Sprites.
Public propertytag
(Inherited from Component)
Public propertyCode exampletext Text will be parsed for special tags, and the final result will be passed on to the Text Mesh Pro Text component.
Public propertytransform
(Inherited from Component)
Public propertyuseGUILayout
(Inherited from MonoBehaviour)
Top
Methods
 NameDescription
Public methodBroadcastMessage(String)
(Inherited from Component)
Public methodBroadcastMessage(String, Object)
(Inherited from Component)
Public methodBroadcastMessage(String, SendMessageOptions)
(Inherited from Component)
Public methodBroadcastMessage(String, Object, SendMessageOptions)
(Inherited from Component)
Public methodCancelInvoke
(Inherited from MonoBehaviour)
Public methodCancelInvoke(String)
(Inherited from MonoBehaviour)
Public methodCompareTag
(Inherited from Component)
Public methodEquals
(Inherited from Object)
Public methodForceUpdate Updates glyphs / text and TMPro text value immedately. Normally, this happens automatically in the Update loop.
Public methodGetComponent(String)
(Inherited from Component)
Public methodGetComponent(Type)
(Inherited from Component)
Public methodGetComponent``1
(Inherited from Component)
Public methodGetComponentInChildren(Type)
(Inherited from Component)
Public methodGetComponentInChildren(Type, Boolean)
(Inherited from Component)
Public methodGetComponentInChildren``1
(Inherited from Component)
Public methodGetComponentInChildren``1(Boolean)
(Inherited from Component)
Public methodGetComponentInParent(Type)
(Inherited from Component)
Public methodGetComponentInParent``1
(Inherited from Component)
Public methodGetComponents(Type)
(Inherited from Component)
Public methodGetComponents(Type, ListComponent)
(Inherited from Component)
Public methodGetComponents``1
(Inherited from Component)
Public methodGetComponents``1(ListUMP)
(Inherited from Component)
Public methodGetComponentsInChildren(Type)
(Inherited from Component)
Public methodGetComponentsInChildren(Type, Boolean)
(Inherited from Component)
Public methodGetComponentsInChildren``1
(Inherited from Component)
Public methodGetComponentsInChildren``1(Boolean)
(Inherited from Component)
Public methodGetComponentsInChildren``1(ListUMP)
(Inherited from Component)
Public methodGetComponentsInChildren``1(Boolean, ListUMP)
(Inherited from Component)
Public methodGetComponentsInParent(Type)
(Inherited from Component)
Public methodGetComponentsInParent(Type, Boolean)
(Inherited from Component)
Public methodGetComponentsInParent``1
(Inherited from Component)
Public methodGetComponentsInParent``1(Boolean)
(Inherited from Component)
Public methodGetComponentsInParent``1(Boolean, ListUMP)
(Inherited from Component)
Public methodGetHashCode
(Inherited from Object)
Public methodGetInstanceID
(Inherited from Object)
Public methodInvoke
(Inherited from MonoBehaviour)
Public methodInvokeRepeating
(Inherited from MonoBehaviour)
Public methodIsInvoking
(Inherited from MonoBehaviour)
Public methodIsInvoking(String)
(Inherited from MonoBehaviour)
Public methodSendMessage(String)
(Inherited from Component)
Public methodSendMessage(String, Object)
(Inherited from Component)
Public methodSendMessage(String, SendMessageOptions)
(Inherited from Component)
Public methodSendMessage(String, Object, SendMessageOptions)
(Inherited from Component)
Public methodSendMessageUpwards(String)
(Inherited from Component)
Public methodSendMessageUpwards(String, Object)
(Inherited from Component)
Public methodSendMessageUpwards(String, SendMessageOptions)
(Inherited from Component)
Public methodSendMessageUpwards(String, Object, SendMessageOptions)
(Inherited from Component)
Public methodStartCoroutine(IEnumerator)
(Inherited from MonoBehaviour)
Public methodStartCoroutine(String)
(Inherited from MonoBehaviour)
Public methodStartCoroutine(String, Object)
(Inherited from MonoBehaviour)
Public methodStartCoroutine_Auto
(Inherited from MonoBehaviour)
Obsolete
Public methodStopAllCoroutines
(Inherited from MonoBehaviour)
Public methodStopCoroutine(Coroutine)
(Inherited from MonoBehaviour)
Public methodStopCoroutine(IEnumerator)
(Inherited from MonoBehaviour)
Public methodStopCoroutine(String)
(Inherited from MonoBehaviour)
Public methodToString
(Inherited from Object)
Top
See Also