Project using URP gives a black screen after migration

Include the following details (edit as applicable):

  • Issue category: ARDK Documentation / AR
  • Device type & OS version: Android
  • Host machine & OS version: Mac / Windows
  • Issue Environment : On Device
  • Xcode version: n/a
  • ARDK version: 3.0
  • Unity version: 2021.3.17f

Description of the issue:

We have upgraded our game to ARDK 3.0 Beta, and we’re seeing a black screen when loading up an AR scene. Eventually we tracked this down to being something to do with URP, by opening up the sample project (which worked) and upgrading it to URP (which broke it in the same way as we’re seeing).

In the URP guide here it says to add the ARSessionFeature and DepthMeshRendererFeature or use the ArdkUrpAsset, none of which appear to be present in ARDK as far as I can see. Are there replacements for these, or is URP not supported yet?

Hey Owen,

Since ARDK 3.0 integrates with AR Foundation, there is no need for any of the old ArdkUrpAssets and such. Using the same URP asset that you would in any Unity URP project should work just fine.

Hi Jesus,

Thanks for the reply. Knowing that it should work helped, since I wasn’t sure whether I wasn’t setting something up properly in Unity or the ARDK.

The solution was to add the AR Background Renderer Feature to my asset pipeline as detailed here: Configuring the AR Camera background using a Scriptable Render Pipeline | AR Foundation | 4.2.8

Owen