I am working on a project where I have a menu using UI Toolkit. In this menu I can change the texture of a panel on the building. For some reason, the menu is not displayed when I am getting closer to the panel of the building. When I am moving the camera, the menu appeares and disappeares at some spots. When the menu is not displayed I can still press the buttons, the events are there but the ui elements are not displayed. You will see better with these 2 pictures.
I shared the project with a collegue who does not have the problem. The difference, He is working on Windows and I am working on MacBook Pro with the new chip M2.
We are working on the same Unity version: 2021.3.9f
Is it possible the problem come from the computer or else is it a problem with the Unity configuration?
Bonjour Antoine. This issue appeared with MacOS Ventura. We provided a fix in Unity 2021.3.15f1, so you would need to upgrade your project. If you absolutely need to stick to this version, an alternative would be to use OpenGL instead of Metal, but expect degraded performance.
I migrated my project to the version 2021.3.15f1 and try 2021.3.21f1 too this morning but the problem is still there on both versions. I am not sur the issue you mentionned correspond exactly to my problem.
I did not have the problem until i added the texture on the panel of the building. The problem seem to be like a Z-index and rotation problems. Is it possible the menu is aligned with the front face of the building and when I move the camera to the left face, the UI Toolkit menu try to aligned with the left texture ?
NB: the problem only occurs on Mac Ventura 13.2.1 (M2 chip).
Hi, just to make sure, could you confirm that you have clearDepthStencil set to true in your PanelSettings asset? If so, then I’m not sure what is causing without investigating furthermore. In this case, could you submit a repro project in Help>Report a bug… and post the case number here. Thanks