Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

UIX: Height offset for UI elements

Open JackTheFoxOtter opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Many VR games use depth as an element to make UIs more interesting, for example buttons that "pop out" of the menu on hover. Currently, it is only possible to create "flat" UIs using UIX.

Describe the solution you'd like

An option to specify a height offset for elements on a UIX canvas to allow individual UI elements to be visually offset from the canvas surface. This could be used to create the aforementioned effects and allow creating more interesting UI styles for VR users.

Describe alternatives you've considered

Creating physical menus instead, however, that way you loose access to UIX features like the powerful layouting.

Additional Context

No response

JackTheFoxOtter avatar Jan 06 '24 16:01 JackTheFoxOtter

nested canvases?

minenick123 avatar Jan 06 '24 17:01 minenick123

We can add this relatively easily on itself, but the layouting and everything would still treat everything like flat.

The weirdest part would be masking, because it would actually change depending on the angle you look at UI from, if you don't ofsset the mask too.

It should be workable though, just something to be wary of when added.

Frooxius avatar Jan 06 '24 18:01 Frooxius