snozbot / fungus

An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
MIT License
1.63k stars 291 forks source link

Qol, add option to ignore click Events when mouse pointer is over UIs… #1007

Open breadnone opened 3 years ago

breadnone commented 3 years ago

Description

Small improvement. Add option to ignore click events when clickable2d component obscured by UIs

What is the current behavior?

ClickableSprite will trigger the click events even when obscured by UI elements

What is the new behavior?

OnMouseDown & DoPointerClick won't get triggered when Clickable2D component obscured by UI elements

Edit: Update description