The error you reported does not occur in an empty project created for Unity 6.
This error occurs because your project does not have a proper reference to UnityEngine.XR, which we think is caused by your project's settings.
We've searched this issue and it looks like there's an issue with UnityEngine.XR not being referenced when a certain package is installed.
Please check out the following discussion thread:
(The following thread talks about referencing UnityEngine.XR.Management, whereas in this case it seems like you should set UnityEngine.XR.XRSettings instead.)
If you still have issues, please leave a comment!
If you tell us what packages you have installed in your project and how you have set up your project, we can help you more accurately.
Hi!
Thank you for contacting us!
We tested it using Unity 6, which was recently released, and confirmed that it works without any major issues, except for some API changes.
The obsolete APIs were for the Render Pipeline and Rigidbody.
Issues with the API will not affect overall operation.
The error you reported seems to occur when you open another scene while the editor is open.
We have tried to reproduce the situation, but the issue has not been shown.
In the screenshot you attached, the error log stack is partially obscured, making it difficult for us to know exactly where the error occurs.
We suspect that the error occurs during the process of resetting the editor resources.
We do not know if this is caused by Unity 6, and there may be other specific conditions.
We will look into this further.
If the error persists, please provide us with the full error log.
Providing more information will help us fix the problem.
We plan to do some updates to support Unity 6, including the deprecated APIs.
If this error is reproduced, we will include it.
Thank you!