Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction on custom render targets #17

Open
UkoeHB opened this issue Apr 22, 2024 · 1 comment
Open

Interaction on custom render targets #17

UkoeHB opened this issue Apr 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@UkoeHB
Copy link
Contributor

UkoeHB commented Apr 22, 2024

If UI is rendered to a TargetCamera on a custom render target, is there any way for interactions to reach that UI?

Is a custom integration with bevy_mod_picking or similar necessary?

@eidloi
Copy link
Contributor

eidloi commented Apr 22, 2024

this is because we rely on Interaction which doesn't have a connection between the pointer space and the render target space. Basically we don't have world-space UI, which is something I plan to look into. We can also ask around the ui-dev channel, but I think this is currently not possible out of the box.

I think if we moved to GPU pick-based interaction this would work out of the box. (As in: render the UI with a unique color per node for the single pixel of the pointer). On a related note this would also mean we can make images properly ignore interaction where they are transparent)

@eidloi eidloi added the enhancement New feature or request label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants