With Unity 6 and the latest ViisonOS packages (fresh new project), I can’t get fully imemrsive mode to work…
I have the URP pipeline with the mobile preset, no polyspatial packages present.
When building to device, I see in XCode console a lot of very long errors like this one. What could be wrong?
RequestCreateTexture
SetupRenderTextureFromXRRequest (id: 1 col: 0x14bf98e90 d: 0x14dffb510 sr: 0x0)
RenderTexture::Create (id: 1)
IVRDeviceCallback_CreateEyeTextureResources 0x14bf98e90
IVRDeviceCallback_CreateEyeTextureResources 0x14dffb510
NullReferenceException: Object reference not set to an instance of an object.
at UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry.GetRenderGraphResourceTransientIndex (UnityEngine.Rendering.RenderGraphModule.ResourceHandle& res) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.RenderGraphModule.RenderGraphBuilders.GetLatestVersionHandle (UnityEngine.Rendering.RenderGraphModule.ResourceHandle& handle) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.RenderGraphModule.RenderGraphBuilders.UseResource (UnityEngine.Rendering.RenderGraphModule.ResourceHandle& handle, UnityEngine.Rendering.RenderGraphModule.AccessFlags flags, System.Boolean isTransient) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.RenderGraphModule.RenderGraphBuilders.UseTexture (UnityEngine.Rendering.RenderGraphModule.TextureHandle& input, UnityEngine.Rendering.RenderGraphModule.AccessFlags flags) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.RenderGraphModule.RenderGraphBuilders.UnityEngine.Rendering.RenderGraphModule.IBaseRenderGraphBuilder.UseTexture (UnityEngine.Rendering.RenderGraphModule.TextureHandle& input, UnityEngine.Rendering.RenderGraphModule.AccessFlags flags) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.PostProcessPass.RenderFinalBlit (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph, UnityEngine.Rendering.Universal.UniversalCameraData cameraData, UnityEngine.Rendering.RenderGraphModule.TextureHandle& source, UnityEngine.Rendering.RenderGraphModule.TextureHandle& overlayUITexture, UnityEngine.Rendering.RenderGraphModule.TextureHandle& postProcessingTarget, UnityEngine.Rendering.Universal.PostProcessPass+FinalBlitSettings& settings) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.PostProcessPass.RenderFinalPassRenderGraph (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph, UnityEngine.Rendering.ContextContainer frameData, UnityEngine.Rendering.RenderGraphModule.TextureHandle& source, UnityEngine.Rendering.RenderGraphModule.TextureHandle& overlayUITexture, UnityEngine.Rendering.RenderGraphModule.TextureHandle& postProcessingTarget, System.Boolean enableColorEncodingIfNeeded) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderer.OnAfterRendering (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderer.OnRecordRenderGraph (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph, UnityEngine.Rendering.ScriptableRenderContext context) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.ScriptableRenderer.RecordRenderGraph (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph, UnityEngine.Rendering.ScriptableRenderContext context) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.RecordRenderGraph (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph, UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Rendering.Universal.ScriptableRenderer renderer) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.RecordAndExecuteRenderGraph (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph, UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Rendering.Universal.ScriptableRenderer renderer, UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Camera camera, System.String cameraName) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.RenderSingleCamera (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Rendering.Universal.UniversalCameraData cameraData) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.RenderCameraStack (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera baseCamera) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List1[T] cameras) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, System.Collections.Generic.List
1[T] cameras) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipelineAsset, System.IntPtr loopPtr, UnityEngine.Object renderRequest) [0x00000] in <00000000000000000000000000000000>:0