Unity无法加载脚本?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unity无法加载脚本?相关的知识,希望对你有一定的参考价值。
求解答
参考技术A 你好!请你查看是否是Unity最新版本的,如果是最新版本的请你重新安装就可以了,这有可能是版本太低或者软件自身的问题。追问我的是最新版的
Unity:无法从资产包加载场景
【中文标题】Unity:无法从资产包加载场景【英文标题】:Unity: Cannot load scene from asset bundle 【发布时间】:2015-02-28 19:55:40 【问题描述】:我在使用 Unity 5 Beta RC3 中的新 Asset Bundle 系统时遇到问题。现在,在我提出我的问题之前,自 beta 17(4 周前)以来,我一直在 Unity 5 中使用这个项目,并且一切工作正常,加载了几个不同的场景及其所有依赖项,直到我昨天做出了改变这打破了他们。
因此,请仅在您使用由 Vincent Zhang 在统一论坛上提供的新 Unity 5 Asset Bundle 系统时回答此问题。我也会在那里问这个问题。
所以我的项目有 3 个场景(loader.unity、title.unity 和 rink.unity)。 loader.unity 是构建设置中唯一的场景,它是第一个加载的场景。它有一个标记为 DontDestroyOnLoad 的对象。该场景中的加载器对象使用了来自 Vincent Zhang http://forum.unity3d.com/threads/new-assetbundle-build-system-in-unity-5-0.293975/
的此线程中链接的演示资产中的 LoadScenes 脚本它可以很好地加载第二个场景(title.unity),这个场景只有一个文本字段作为项目的标题和一个用于前进到下一个场景的按钮。
当我按下该按钮并在编辑器中加载第三个场景并打开“SimulateAssetBundles”时,在编辑器中一切正常。直到昨天一切正常。
昨天我从一位艺术家那里得到了一个新溜冰场的新模型,我将它导入到场景中,并替换了我用 ProBuilder 构建的原型,因为他是在 Maya 中建模的,并且具有完全准确的碰撞体积和更好的材料。
这个带有新材质的新模型意味着我必须调整场景中的灯光,所以我删除了现有的灯光,并添加了 6 个与之前类似的点光源,但范围、角度和强度值不同。
由于冰材质的镜面反射率很高,我想看看是否可以添加反射,所以我在场景中添加了反射探针。
当我从装载机场景转到标题场景并在溜冰场场景中播放并返回标题场景时,编辑器的一切都运行得非常好。但是当我进行构建并加载溜冰场场景时,我的日志中出现了这个错误,并且发生了一些奇怪的事情。
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkscene
Couldn't open the cache file! URL: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkscene
我已经检查过我的文件系统上没有任何东西正在访问该文件,可能会使其读/写锁定。我已经尝试完全鞭打我的项目并从 Git 中重新提取,甚至克隆到我计算机上一个完全不同的文件夹中,所以它绝对不是无法找到/读取文件的问题。
我已经在第二台计算机上尝试过,但仍然存在同样的问题,并且该问题也出现在 Web Player Builds 以及独立 PC 中。
重新安装 Unity,删除我的库并重新导入我的所有资产,清除网络缓存都没有效果。
我假设照明发生变化或反射破坏了场景,并且这些设置的某些部分在assetbundle 文件中不正确。
这是完整的输出日志
Initialize engine version: 5.0.0f3 (b472b25463a4)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.0]
Renderer: Intel(R) HD Graphics 4600 (ID=0x416)
Vendor: Intel
VRAM: 128 MB
Begin MonoManager ReloadAssembly
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\UnityEngine.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\UnityEngine.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\Assembly-CSharp-firstpass.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\Assembly-CSharp-firstpass.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\Assembly-CSharp.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\UnityEngine.UI.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\UnityEngine.UI.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\ProBuilderCore.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\ProBuilderCore.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\ProBuilderMeshOps.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\ProBuilderMeshOps.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\ProCore.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\ProCore.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\SixBySeven.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\SixBySeven.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\Rewired_Core.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\Rewired_Core.dll into Unity Child Domain
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\UnityEngine.UI.dll (this message is harmless)
Loading D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\UnityEngine.UI.dll into Unity Child Domain
- Completed reload, in 0.105 seconds
<RI> Initializing input.
<RI> Input initialized.
desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
<RI> Initialized touch support.
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\System.Core.dll (this message is harmless)
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\System.dll (this message is harmless)
Non platform assembly: data-0B85BE18 (this message is harmless)
Fallback handler could not load library D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/Mono/data-0B85BE18.dll
Non platform assembly: data-0B885558 (this message is harmless)
Fallback handler could not load library D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/Mono/data-0B885558.dll
Non platform assembly: data-03642020 (this message is harmless)
Fallback handler could not load library D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/Mono/data-03642020.dll
Platform assembly: D:\hockey\smashmouthhockey\SmashMouth\Smash Mouth Hockey_Data\Managed\System.Xml.dll (this message is harmless)
Setting up 2 worker threads for Enlighten.
Thread -> id: 201c -> priority: 1
Thread -> id: 20c4 -> priority: 1
Start to load scene title at frame 3
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/titlescene
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesbluetexture
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesredtexture
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/soundfxmixer
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/boardsmaterial
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/mastersoundmixer
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/musictrack
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/boardsmaterial cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/1097cfd4ed72da3c833837a364aff73b9685f325
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesredtexture cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/dd1c6272b74d4b2c0f47d33fef3686331939c865
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/soundfxmixer cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/aac390ad5c870bfebde44819a26978f95dd034bf
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesbluetexture cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/5a3378bf86a6696b99a45c23524352a09228e877
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/boardsmaterial
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesbluetexture
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesredtexture
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/soundfxmixer
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/mastersoundmixer cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/32feea768cb3a81dc240aaec25edbf1d176b9502
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/mastersoundmixer
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/helmetmodel
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/helmetmodel cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/4d4e39f7bfde9e449b92064321b4581e6e13d746
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/helmetmodel
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rollerbladeanims
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/stickmodel
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/combatanims
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/stickmodel cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/93e306bfd4a67fb7f59275f0ef276df822944e27
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/stickmodel
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesmodel
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/padsmodel
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/buttonanimcontrol
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesmodel cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/addbeb7117c66016716775b986706c079b509dec
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesmodel
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/playeranimcontroller
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinktexture
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/titlecanvasprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/padsmodel cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/b9e610874b8d0bd811a06872d792cd3dcebb00c0
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/buttonanimcontrol cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/e0324af702d3031b16e5e8569a30e36ec6671aaa
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/padsmodel
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/buttonanimcontrol
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/pucksounds
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rollerbladeanims cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/954b581fe2c37dff73b4fc251425768612bd5397
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rollerbladeanims
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dripsound
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/playeranimcontroller cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/ff1adb035138678e27d833b785d8e1e0f33b42aa
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/playeranimcontroller
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/medievilanims
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinktexture cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/7ab4bde241704ad64d8cd0b8ad99b905974f7a26
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/combatanims cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/7f42a010b3a325a92add388dc2de788801d9fae7
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/titlecanvasprefab cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/859d825c6a340837c1249938d21c7132566e2d41
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/combatanims
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinktexture
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/titlecanvasprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/pucksounds cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/142ed85232f6b8b4fd08213f25cba318f39b67e7
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dripsound cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/5f945753735525ce223720ddefe75d3a561aecdc
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/pucksounds
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dripsound
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/musictrack cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/ab96872c052b5288e6589b92bde7fdf69aeece86
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/musictrack
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/medievilanims cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/900bc7fbc395dc5eace11da6e6fd60fbba304b83
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/medievilanims
Finish loading scene title at frame 86
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
Start to load scene rink at frame 215
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkscene
Couldn't open the cache file! URL: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkscene
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
Finish loading scene rink at frame 220
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkprefab cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/869226af3d6fa5bc36a8cc606d67841f2c36d03b
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkprefab
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesprefab
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gamecontrollerprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesprefab cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/1262bff4d6099e1952a27eed38df005e2003236c
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/dimplesprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gamecontrollerprefab cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/b31940b89ceeee4f88293d0e9246ab2fd62811fa
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gamecontrollerprefab
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/goalieprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/goalieprefab cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/61940be90d34ba945bdd10fbf5c6af00d137d935
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/puckprefab
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/goalieprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/puckprefab cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/f0e195062c79bfb26a33c2a94a39d60a0d7478b1
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/puckprefab
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/buzzersound
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/crowdambiencesound
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/buzzersound cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/2a20983a53f44fe1807785e3575956b641541375
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/buzzersound
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/crowdambiencesound cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/9aa09e7e8398377c8719f9ca72df4c80c44e074b
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/crowdambiencesound
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gamestatemachine
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gamestatemachine cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/a41bd379a771d910f82b100610731266915ceffc
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gamestatemachine
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/scoreboardsprite
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/nettexture
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netdiffusematerial
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/scoreboardsprite cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/76846fc0db206621e5792f5d3d243d9565e7d4c2
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/scoreboardsprite
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkmaterial
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/nettexture cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/d49863793336391b0b29759771560bf9a3a0d2b1
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/nettexture
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkcanvasprefab
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netdiffusematerial cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/e7ea9e826c3537fe905c373ef36f2b18d25fdbb6
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netdiffusematerial
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/skatingsounds
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkmaterial cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/23b5a4af0624f7f475f01bde74b673a90e50b153
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkmaterial
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkcanvasprefab cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/9336273dc329ea68bb860c1178962a50dedb0b67
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkcanvasprefab
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gruntsounds
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkmodel
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/skatingsounds cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/d5ed52c6dab1894d997dcb9aad382abd5ae63211
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/skatingsounds
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netmodel
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkmodel cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/a57966374290bfda73cec4df8dd308b1d498eefd
starting www download: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netcollisionmodel
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gruntsounds cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/b5a98fd354ed8b567b53f3c52968b57ed768d602
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/gruntsounds
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/rinkmodel
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netmodel cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/e900766a79666ec9e26293dc4d89f1100470a48a
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netmodel
file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netcollisionmodel cached to C:/Users/Brian/AppData/LocalLow/Unity/WebPlayer/Cache/DefaultCompany_Smash Mouth Hockey/9f04c5f1ab665e5d67e62a634f45c732f8118c33
loading from cache: file://D:/hockey/smashmouthhockey/SmashMouth/Smash Mouth Hockey_Data/StreamingAssets/AssetBundles/Windows/netcollisionmodel
【问题讨论】:
此类问题请使用unity3d标签。 【参考方案1】:事实证明,Enlighten 不喜欢在检查器中将对象标记为“静态”。我假设烘焙的光照数据没有包含在场景的资产包中,因此在加载时会导致错误。
我进入我的场景,取消选中“静态”并重建我的资产包,一切都恢复正常了。
【讨论】:
以上是关于Unity无法加载脚本?的主要内容,如果未能解决你的问题,请参考以下文章
Unity2018 VS2017打开CS脚本,提示全红及无法加载工程等问题解决