Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
WEZ-'s avatar
WEZ-
Honored Guest
2 years ago

How to Disable UI Buttons

Is there a way with OVR to disable a UI Poke Interactable button (Disable the events, change colour to disbaled state)?

The Toggles have a check box for "Interactable" but there seems to be no such thing for a PokeInteractable. There is a Disabled Color State in the Interactable Color Visual but no apparent way to trigger this.

1 Reply

Replies have been turned off for this discussion
  • foyleman's avatar
    foyleman
    Honored Guest

    I never found an answer posted anywhere else, but I did find:

    PokeInteractable.Enable()

    PokeInteractable.Disable()

    This appears to function as desired.