How To Fix Black Screen Issue When Using AR Foundation And Universal Rendering Pipeline in Unity?

preview_player
Показать описание
I had few questions regarding why people are getting a black background when using "Universal Rendering Pipeline" with AR Foundation, also some users reported this as an issue in Android which is why I show it in Android by using a Google Pixel device, however this functionality works on iOS as well and I've verified that it does.

The URP project shown in this video can be downloaded from:

Recommended Unity Asset For Today "AR Foundation Editor Remote"

*** Support me by Subscribing to the channel as it will help me in bringing a lot more content ***

Support me in Patreon so I can keep doing stuff like this for free!

Get realtime indie development tips from me in Twitter

Subscribe to my indie development videos & game releases newsletter

Blog about Indie development and startup
Рекомендации по теме
Комментарии
Автор

Sorry, I followed the video but it is still black screen. My unity version is 2019.4.0f1.

marcmok
Автор

Dilmer! I googled my question and your video was the EXACT answer I was looking for. You've saved me once again. Keep it up!

danskerdigitalaerials
Автор

no one know this stuff better than you, except for maybe the AR foundation developers. Thanks again.

NelsonRebolo
Автор

Thank you so much for the black screen help. I updated my project to URP so I can use shader graph and I couldn't figure out why my screen was black but the iPad was running. I don't think I ever would have figured this out!

smpsports
Автор

my project was created with URP and I have black screen issue. So what helped me was going to seettings -> ForwardRenderer-> AddRenderFeature - > AR Background RenderedFeature (2:14) and it resolved this issue for me. Thanks a lot

kostyayeremenko
Автор

Thank you for this, i found this on a forum post from 3 years ago about it. Had to read through like half of the posts before this video came up, the OP should really edit their post with the solution lol

haachamachama
Автор

Finally managed to get this working, so posting the recipe that worked for me, first of, I was building for IOS using Unity 2019.4.0f1,
1. Make sure you have all the latest XR packages installed, try testing with only a camera and session origin.
2. Remove ALL the example assets from the scene and from the assets
3. Definitely make sure you switch to a universal rendering pipeline like shown in the video here, and create, and set those URP assets like shown in the vid.
4.Make sure you add a camera description in the project settings
5.XR plugin management check only ARKit and/or ArCore uncheck everything else
6.Some of the features work only with new ios devices like the ipad pro with A12Z Bionic chip and 64-bit architecture - so check what device are you using.
7. In project settings change the Architecture to ARM64

juicyhummus
Автор

ADDITIONAL STEP:
Go to Project Settings > Quality
And put your asset into the Rendering slot for every quality level. Then it works!

jesco_xr
Автор

Thank you Dilmer, After lots of struggles used the same version which you have used in the video its was working 💗💗💗

hariharanb
Автор

Thx for your awesome and detailed videos! I upgrade unity to 2020.1.16, use ARFoundation and ARKit 4.1.1, it finally works!

TotaNb
Автор

This fixed my camera feed! Unity version 2020.3. Thank you Dilmer! :)

Dweeh
Автор

Really great of you to create this video.
I solved my issue by switching over to 2019 LTS, and using the verified versions of ARF and ARcore. Seems to work fine now.
Thanks a lot for the video.

SanilShah
Автор

Thank you, that helped a lot. Please be aware that you need the latest version of AR Fundation and the Plugins for ARKit and ARCore :)

benediktkurz
Автор

I've been using URP and AR Foundation + ARCore and got the problem of getting the black screen. To solve it I had to:
1. Activate AR Core in the Project settings.
2. Then in the Player settings > Other Settings section I had to turn on ARM64 if you scroll down to configuration settings.

Also: If ARM64 is greyed out, it's because in the configuration settings the "Scripting Backend" has to be IL2CPP for you to be able to turn on ARM64.

That solved the issue for me. Hope that helps!

viever
Автор

Thanks for your great tutorials and tipps. Question, how do you get the android preview window/emulator on screen. Seems really useful to not to have to build and app everytime you want tpo test a feature?

volkerku
Автор

If you don't have this feature, you have to update your arcore package! Took me a while to figure out xD

LauLauHip
Автор

My AR apk is not working (black screen) because I have to install Google Play Services for AR, while my Android is not compatible with Google Play Services for AR apps. is this tutorial to solve it?

rizkanyazid
Автор

this is a great tutorial, but just one thing when you say the latest version, it under a different time frame, unity is very easy to break in future version....I tried various version of ARfoundation + URP, all black screen...but the one you provide is working(android) Thanks a lot

jinchaohan
Автор

saved me! subscribed to your patreon. unity should hire you, so much better then their content

radixmotion
Автор

Dilmer, would you mind testing Unity 2020.2 with ARF 4.0.8 please? I can't get either the standard render pipeline, nor URP to work. I'm on Android.
Earlier versions of ARF (3.1 and lower) work OK.
Thank you.

drtonyburns