#If UI is laid out in the window, will it render the object underneath unclickable?

10 messages · Page 1 of 1 (latest)

keen salmon
#

I'm looking into the UI and wonder: Will the blue-blocked area in this screen be actually the UI, i.e. the stars/balls in this area won't be clicked? It's a flexbox with space-between.

unique heart
#

you'll have to handle blocking inputs from the game during a UI interaction, I think you can consume the input event though.

#

so the game parts never recieve it

keen salmon
#

@unique heart Sorry I don't fully understand what you wrote.

So what if I want the UI to be present in these corners (which seems to require flexbox) but I want to objects in the world to be clickable even if they are in this blue area, which is the space in that flexbox? Do I have to do something in this case or is it just clickable if no UI is overlapping the object? Thanks again.

#

I'll spin up a dummy project to try it out but currently don't have the time to 😄

unique heart
#

if you don't consume the even you'll recieve in the game fine

#

you shouldn't need to do anything

keen salmon
#

Ok so I could just assume that if the concrete UI item is covering that space, I could interact with the objects normally?

unique heart
#

that should be how it behaves

keen salmon
#

Many thanks for your time 🙂