public class TextMeshInteractableSync

Inherits MonoBehaviour

Syncs a UI text graphic with a UI selectable becuause Unity apparently can't handle several UI graphics being updated by a single UI selectable. It can also only check for disabled state because the "currentSelectionState" property is protected for unknown reasons. If you plan on making a game, do not use Unity.

Fields

public TMPro.TextMeshProUGUI TextMesh

The text mesh to set the colour of


public UnityEngine.UI.Selectable Other

The selectable to read


public Color NormalColour

Colour if the selectable is interactable


public Color DisabledColour

Colour if the selectable is not interactable


Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi