19 lines
852 B
Plaintext
19 lines
852 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/TextMeshInteractableSync.html
|
|
Title: People Playground Modding - TextMeshInteractableSync
|
|
==================================================
|
|
|
|
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 |