Non Rectangular "Hit Boxes" #35
onewheelstudio
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would love to be able to adjust the shape of the "hit box" or gesture detection on a UIBlock2D. It would be great if we could use the texture alpha to do this, but custom polygon shapes could also get the job done. Building up a shape with a composition of several UIBlocks is okay but certainly isn't the tidiest solution from the user/designer side of things.
For example, I'm using a hexagon shaped texture but gestures are detected on the entire rectangle. This isn't a problem for a single UI element but is less than ideal when the hexagons are stacked near one another and the UIBlocks overlap.
Beta Was this translation helpful? Give feedback.
All reactions