Disable interaction behind a UI

There is a frame that is semi transparent, and you could interact with anything behind it. How would I go about disabling interaction behind the semi transparent frame.

Screenshot

Enabling the Active property on the Frame should do the trick; it determines whether input on the object is sunk or not. You can find out more on the DevHub page.

That didn’t work, but thanks! I will just make the Frame opaque.

That should work, I’m using the same method on one of my games. Are you using the Activated event to register all the button inputs?

The Frame transparency would change anything to your problem.
But as @Crazycat4360 said the Active property is well working and is the only way for it works (unless if you just want to put the Visible property to false).

yes, and is there something bad about Activated?

No, that’s the recommended way of detecting input from buttons. I was just wondering since that’s what I was using. I’m trying to think of why it isn’t working on your end.

It’s alright. I made the Frame as the background and tween in to opaque from transparent. Thanks again.

1 Like