Camera does not work with Unity 6 because of the changes made with URP 17

0 votes
asked May 12 by jmcgee12 (140 points)
With Unity 6 and URP 17, they have made changes to the scriptable render pipeline. As a result, the Unity plugin for EasyAR, as of version 4.6.3, does not work. I believe it has something to do with the change in camera command buffers not being manually executed anymore...Or maybe it has something to do with the RenderGraph. The camera is just a black screen with two continually updated warnings. Here are the warnings:

Your project uses a scriptable render pipeline. You can use Camera.AddCommandBuffer only with the built-in renderer.
UnityEngine.Camera:AddCommandBuffer (UnityEngine.Rendering.CameraEvent,UnityEngine.Rendering.CommandBuffer)
easyar.CameraImageRenderer:UpdateCommandBuffer (UnityEngine.Camera,UnityEngine.Material,bool) (at ./Library/PackageCache/com.easyar.sense/Runtime/Device/CameraImage/CameraImageRenderer.cs:278)
easyar.CameraImageRenderer:OnFrameUpdate (easyar.OutputFrame) (at ./Library/PackageCache/com.easyar.sense/Runtime/Device/CameraImage/CameraImageRenderer.cs:231)
easyar.ARSession:UpdateSession () (at ./Library/PackageCache/com.easyar.sense/Runtime/Workflow/ARSession.cs:356)
easyar.EasyARController:Update () (at ./Library/PackageCache/com.easyar.sense/Runtime/EasyARController.cs:241)

RecordRenderGraph is not implemented, the pass easyar.EasyARCameraImageRendererFeature+CameraImageRenderPass won't be recorded in the current RenderGraph.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

1 Answer

0 votes
answered 6 days ago by kenn (18,790 points)
The warning does no harm at all.

We have already made the new URP render graph work for background rendering. But there is a bug or something unusual of the new URP system which we have already reported to Unity and we need it to be fixed first before release. See https://discussions.unity.com/t/glitches-on-ios-with-ar-camera-image-rendering-urp-17-render-graph/1548048

At hot-fix will also be released in a week or two even if Unity doesn't fix the issue, in which case some features of the SDK will not work.

Use URP compatible mode or disable URP for now, you can find options in the Unity project settings or Unity documents.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...