黑屏统一AR基金会 - 相机不起作用
无法将相机用于AR Unity应用程序。
在iOS设备上启动应用程序时,屏幕是完全黑色的。
我正在运行Unity版本2021.3
Cannot use the camera for an AR Unity App.
When launching the app on an iOS device, the screen is totally black.
I'm running Unity version 2021.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
可能的解决方案之一可能是:
转到
edit>项目设置> XR插件管理
选择
android
或ios
分别启用
arcore
或arkit
确保您已经从Unity Hub App中安装了AR软件包(在Unity版本2021.3上测试)
更多信息: https://forum.unity.com/threads/threads/black-screen -unity-ar-ar-Camera-not-working.905972/
One of the possible solutions could be:
Go to
Edit > Project Settings > XR Plug-in Management
Choose
Android
oriOS
Enable respectively
ARCore
orARKit
Be sure that you have already installed AR packages from the Unity Hub app (tested on Unity version 2021.3)
More info here: https://forum.unity.com/threads/black-screen-unity-ar-camera-not-working.905972/
我正在与Unity 2021.3.1f1面对黑屏
尽我所能;包括以上。
黑屏...
AR软件包4.2.2
XR相互作用2.01
XR管理4.2.1
I am stilling facing the black screen with Unity 2021.3.1f1
Done everything I can; including above.
Black screen...
AR Packages 4.2.2
XR Interaction 2.01
XR Management 4.2.1
我遵循了本指南的指导,但我只使用 2021.3.1f1 以及下面列出的软件包。
? fzgjh.png“ rel =“ nofollow noreferrer”>
I followed the guidance in this guide, but I only work with 2021.3.1f1 and the packages listed below.
https://learn.unity.com/tutorial/configure-your-ar-development-environment?uv=2021.3&courseId=6346b7e5edbc2a7caec0f8fc&projectId=633b041bedbc2a6de5496294
我通过找到渲染脚本并在Inspector中添加“ AR背景渲染功能”来修复我的矿井。
我使用了带有Unity 2022的3D URP模板。
这是我的第一篇文章,所以让我知道我是否缺少细节。
找到渲染文件
单击AR背景渲染功能
I fixed mine by finding the rendering scripts and adding the "AR Background Render Feature" in inspector.
I used the 3D URP Template with Unity 2022.
This is my first post so let me know if I'm missing details.
Locate Render Files
Click AR Background render features
在Unity中转到您的项目文件夹>设置> URP平衡渲染器。在“检查器”单击“添加渲染器”功能>设置AR背景渲染器功能。
与urp-highfidelity-Renderer一起做同样的事情
In Unity go to your project folder > Settings > URP-Balanced-Renderer. In the inspector click add renderer feature > set Ar Background Renderer Feature.
Do the same with URP-HighFidelity-Renderer