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

Issue with two cameras and different render layers where events are fired through (culling) #4180

Closed
flyingbaba opened this issue Apr 7, 2022 · 1 comment · Fixed by #4210
Assignees
Labels
area: ui UI related issue bug

Comments

@flyingbaba
Copy link

Then two cameras are used for rendering different UI and World elements, hover, click, tap events are fired on the camera where no such layers should be rendered.

Steps to Reproduce

Launch: https://launch.playcanvas.com/1383836?debug=true

Hover with mouse over the purple box, like in this screenshot:

Screenshot_9

Note:
Camera-1 render layers: World, Depth, Immediate, Ui
Camera-2 render Player-ui layer only

https://playcanvas.com/editor/scene/1289270

If we add the ui layer to the Camera-2 when we can see that the button sit in the place where the events are triggered.

image

Thank you

@yaustar
Copy link
Contributor

yaustar commented Aug 4, 2022

Maybe there should be an option where the developer can choose which cameras should be checked with in the Element Input?

Related forum post: https://forum.playcanvas.com/t/button-hit-area-changed-after-load-scene/26904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui UI related issue bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants