"Disabling" a button?


Just checking in to see if there is a method I’m missing to “disable” buttons in the UI, preferably through the Lua script.

I’ve used the UiElementBus.Event.SetIsEnabled(entity, false) , but that seems to just completely hide the element. Use case is graying out / disabling a user’s button until certain conditions are met.

Hi @naotoy,

You can do this using:


This will put the interactable component into the disabled state.