简体   繁体   English

基础黑屏

[英]Arfoundation Black Screen

I have been working with arfoundation for quite a bit now, but all of a sudden when I built a new project, I am ending up with a black screen.我已经在 arfoundation 工作了很长时间,但是当我构建一个新项目时,突然间我以黑屏告终。

This is my manifest.json这是我的 manifest.json

{
  "dependencies": {
    "com.unity.ads": "2.0.8",
    "com.unity.analytics": "3.3.2",
    "com.unity.collab-proxy": "1.2.16",
    "com.unity.package-manager-ui": "2.1.2",
    "com.unity.purchasing": "2.0.6",
    "com.unity.textmeshpro": "2.0.1",
    "com.unity.timeline": "1.0.0",
    "com.unity.xr.arcore": "2.1.2",
    "com.unity.xr.arfoundation": "2.1.4",
    "com.unity.xr.arkit": "2.1.2",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
  }
}

I have also unchecked arcore and arkit support.我还取消了对 arcore 和 arkit 的支持。 I dont know what else to do,我不知道还能做什么,

Please help请帮忙

Build Settings -> Player Settings -> XR Plug-In Managment -> Select ArCore in Android Tab.构建设置 -> 播放器设置 -> XR 插件管理 -> 在 Android 选项卡中选择 ArCore。 Android's tab If you're also developing for iOS, select ARKit in iOS tab. Android 选项卡如果您也在为 iOS 开发,请在 iOS 选项卡中选择 ARKit。

We need more informations about your problem.我们需要有关您的问题的更多信息。 Which version of Unity are you using ?您使用的是哪个版本的 Unity? Did you tried to run your project on both iOS and Android ?您是否尝试在 iOS 和 Android 上运行您的项目? Still the same problem ?还是同样的问题? Did you tried to run any ARFoundation sample to see if it's related to your project, your Unity etc ... ?您是否尝试运行任何 ARFoundation 示例以查看它是否与您的项目、您的 Unity 等有关...?

I upgraded my AR Foundation package to 3.0 and changed settings for XR-Plugin Management relevant to AR-Kit.我将我的 AR Foundation 包升级到 3.0,并更改了与 AR-Kit 相关的 XR-Plugin Management 设置。 Worked for me.为我工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM