I’ve been experimenting with different ways of doing UI and supporting interactions for both desktop / mobile / and cardboard-vr.
I’ve found that mobile/vr has a hard time with flat 2D UI, I’ve tried a 3D screen with an image element and that barely shows up on mobile, but mostly invisible. I’ve also tried used the model component as a plane, then flattening the object and using a shader to display sprites, and same thing happened where it disappeared when viewed on mobile. Any ideas here?
There was also some weirdness where I had 3 planes with sprites, and they would only show up if I had another model that was a box (which didn’t show up), but would make all the other ones show up.
So overall I’m just seeing some unexpected behavior and just want to find a reliable way to display UI for both desktop/web and also support raycast/vr gazing.
2D screen wouldn’t / shouldn’t work in VR but should be fine on desktop and mobile. Would you able to show a project and screenshots of where it doesn’t do what you expect.
Interesting, and the VR does work but you have to press the vr button twice as I had to add a permissions prompt so that iOS users can use VR cardboard (device motion and orientation) otherwise doesn’t work.
It also uses WebVR since iOS also doesn’t support XR I based it on the “VR Starter Kit (Fixed)” project. I am using a 3D screen in the project posted but I’ll take another look and also look at the example project you provided, thanks for the continued support my dude!
Both as I was seeing the issue of the flat UI disappearing initially on mobile as I went to test for cardboard, then of course that means it wouldn’t show up in cardboard as well.
Guess I’m a little unsure now that all the Planes are showing up now without issue… I even changed the one box model back to a plane. I’m still unable to see that white 2D element off to the right.
But I suppose if the planes are now working I can go that route. I’ll have to do some more testing to make sure.