- Home /
Question by
walentys · Jan 25, 2019 at 04:32 PM ·
uibuttoninteractable
Play sound on noninteractable / disabled / grayed out button
If my button is grayed out (interactable set to false), I'd like to still have a "RRRRR" failure noise warning sound played if the user attempts to click anyway.
Is there any way to do this through using interactable? Or must I change it to always interactable and handle the condition myself, playing a sound if the condition is not met?
Comment
Best Answer
Answer by xxmariofer · Jan 25, 2019 at 04:46 PM
there is no way of interactuate with the button if the interactable bool is set to false, you need to handle the condition yourself.
Well, shucks. I was hoping lol. Thanks for the definitive answer.