Custom VR Button, that appears only on headsets and not on mobile phones #198
llllkatjallll
started this conversation in
Share
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I combined two checks - Needle's check to see if it's a mobile device (this way, you can exclude desktops), and then a second check that uses user agent info to see if it's one of the most common mobile systems. Result: the button does not appear on mobile phones, but it is visible on Quest and Pico 🙂
P.S: I am using Svelte for 2D UI handling.
Beta Was this translation helpful? Give feedback.
All reactions