Unable to get UI panes on Vision OS

I am needing to use a 2D UI pane for my VisionOS app, and it either shows just the generic skybox with no pane, or I get a flashing black and gray windows like something is crashing and restarting over and over.

All works fine when I compile to a MacApp.

I am using Unity 6, Xcode 16 and VisionOS 2.0 and 2.1

What gives?

Since you mention the skybox, I assume you’re using Metal mode (versus RealityKit mode, which won’t show the skybox). Are you using a screen space render mode on your canvas, by any chance? You may want to switch to a world space canvas.

This works fine on a Mac build.

Where is the render mode set?

Also the demos also fail such as UGUI which looks like it uses the same controls, same for Billboard.

A Mac VR build? VR/AR/XR (and stereo displays in general) require special handling for UI.

On the Canvas component:

Are you building the demos (samples) for Metal mode? AFAIK, they have only been tested in RealityKit (and possibly Hybrid) mode.

I played with the render modes, etc, still no joy. Why would it work in the Unity’s simulator, but not in XCode’s? All I want to do get some working controls, shouldn’t be too hard.