Button is not interactable

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By razor7131

I tried to make transition animation that make the screen goes dark after a second using ColorRect with black and transparent as its property until it called. The animation did what I expected, but that I realize the Button / any UI that supposed to be interactable no longer do their job after I place ColorRect on top of them, and if I place the Color Rect below them, it will not cover their presence.

Help, how to fix this?

:bust_in_silhouette: Reply From: jgodfrey

Here’s one way to fix it…

  • Select your ColorRect
  • In the inspector, set the “Mouse | Filter” property to Ignore.

That’ll cause the ColorRect to not intercept mouse events, which will let the event propagate to the underlying button control…

Thanks! it just like what I needed.

razor7131 | 2020-10-22 20:27