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

Some input detection scripts don't work due to SafeArea overlay. #8

Closed
karolsw3 opened this issue Mar 19, 2024 · 0 comments · Fixed by #9
Closed

Some input detection scripts don't work due to SafeArea overlay. #8

karolsw3 opened this issue Mar 19, 2024 · 0 comments · Fixed by #9

Comments

@karolsw3
Copy link
Contributor

I'm using ProCamera2D with the Pan and Zoom script, and "disable over uGUI elements" turned on (so that the panning is disabled when UI menu is open.

The problem is – the script doesn't detect any inputs anymore when using the SafeArea container.
The solution was to set both the SafeArea and #safe-area-content-container VisualElements PickingMode props to ignore.

PickingMode should be set to "ignore" for both elements by default.

karolsw3 added a commit to karolsw3/ui-toolkit-safe-area that referenced this issue Mar 19, 2024
Fixes artstorm#8 . Ignores catching input by SafeArea containers. (doesn't affect its children)
@karolsw3 karolsw3 changed the title Some input detection scripts not work due to SafeArea overlay. Some input detection scripts don't work due to SafeArea overlay. Mar 19, 2024
artstorm added a commit that referenced this issue Mar 22, 2024
Add PickingMode.Ignore to SafeArea VisualElements #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant