0 votes
by (580 points)

Pico Neo3。PUI版本:4.6.3,SDK版本:2.0.5

错误提示如下:
IndexOutOfRangeException: renderPassIndex

UnityEngine.XR.XRDisplaySubsystem.GetRenderPass (System.Int32 renderPassIndex, UnityEngine.XR.XRDisplaySubsystem+XRRenderPass& renderPass) (at <7dc7a535613d4841adfe7a73d6fc0d37>:0)
UnityEngine.Rendering.Universal.XRSystem.CreateLayoutFromXrSdk (UnityEngine.Camera camera, System.Boolean singlePassAllowed) (at Library/PackageCache/com.unity.render-pipelines.universal@10.7.0/Runtime/XR/XRSystem.cs:351)
UnityEngine.Rendering.Universal.XRSystem.SetupFrame (UnityEngine.Rendering.Universal.CameraData cameraData) (at Library/PackageCache/com.unity.render-pipelines.universal@10.7.0/Runtime/XR/XRSystem.cs:199)
UnityEngine.Rendering.Universal.UniversalRenderPipeline.RenderCameraStack (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera baseCamera) (at Library/PackageCache/com.unity.render-pipelines.universal@10.7.0/Runtime/UniversalRenderPipeline.cs:494)
UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, UnityEngine.Camera[] cameras) (at Library/PackageCache/com.unity.render-pipelines.universal@10.7.0/Runtime/UniversalRenderPipeline.cs:241)
UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera[] cameras) (at <27467129168e4121a08fe0095397099f>:0)
UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, System.Collections.Generic.List`1[T] renderRequests, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at <27467129168e4121a08fe0095397099f>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

1 Answer

0 votes
by (6.5k points)

看IndexOutOfRangeException: renderPassInde这个错误,
可能是脚本里边访问数组之类的越界了,可以检查下脚本哪里设置的不对。

1.7k Questions

2.1k Answers

2.8k Comments

1.2k Developers

If you have question about this website, please click 'Send Feedback' button at the bottom left side of the homepage.
...