hi there, trying out 2023.3.b3. HDRP. Opening an existing project, I have some scripts from existing assets throwing error on not finding XRGraphics. Is there a replacement for this? It would be great to hack a workaround to keep the assets going until the asset devs can catch up with the new version. thanks in advance
I don’t know if this would still be helpful, but I’m still trying to figure this problem out myself. I had a script calling
if (RenderPipelineHelper.IsUniversal)
{
isMSAA = isMSAA || XRGraphics.enabled;
}
and it was giving me errors, I replaced it with
if (RenderPipelineHelper.IsUniversal)
{
isMSAA = isMSAA || UnityEngine.XR.XRSettings.enabled;
}
and it at least seems to be doing the same thing and not giving errors anymore.
Hey @RKaffer ,
React Native dev here trying to get our Unity side of the app work for version 6. I used your solution in my file PlanarReflectionRenderer.cs and changed from XRGraphics.enabled
to UnityEngine.XR.XRSettings.enabled
. But I can’t match with unity doc to find replacement for my file PlanarReflectionRendererInspector.cs for UnityEngine.Rendering.XRGraphics.enabled
I checked Unity doc Unity - Scripting API: XRSettings
And looks like using UnityEngine.XR.XRSettings didn’t work, but I can’t find an equivalent method inside Rendering