我试图在unity webGL中构建我的游戏,但我遇到了一个错误



我试图在webGL中构建我的游戏,但我得到了这个错误

"找不到文件"C:\Users-----\OneDrive \Documents\Endless \Runner\Temp\SstagingArea\Data\Native\build.bc">

整个错误是:

FileNotFoundException:找不到文件"C:\Users\ethan\OneDrive \Documents\EndlessRunner\Temp\StatiingArea\Data\Native\build.bc"系统IO.FileStream.ctor(System.String路径,System.IO.FileMode模式,系统。IO.FileAccess访问,系统。IO.FileShare份额,系统Int32缓冲器大小,系统。布尔匿名,系统IO.FileOptions选项)(位于:0)系统。IO.FileStream.ctor(System.String路径、System.IO.FileMode模式、System.IO.FileAccess访问,系统。IO.FileShare份额)(:0)(包装带检查的远程调用)系统IO.FileStream.ctor(字符串、System.IO.FileMode、System.IO.FileAccess、System.IO_FileShare)系统IO.File.OpenRead(System.String路径)(位于:0)系统。IO.File.ReadAllBytes(System.String路径)(位于:0)UnityEditor。WebGL。WebGlBuildPostprocessor。链接构建(UnityEditor.Modules.BuildPostProcessArgs参数)(位于/用户/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/unity。WebGL.extensions/BuildPostprocesser.cs:470)UnityEditor。WebGL。WebGlBuildPostprocessor。PostProcess(UnityEditor.Modules.BuildPostProcessArgs参数)(位于/用户/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/unity。WebGL.extensions/BuildPostprocesser.cs:953)UnityEditor。模块。DefaultBuildPostprocessor。PostProcess(UnityEditor.Modules.BuildPostProcessArgs参数,UnityEditor。BuildProperties&outProperties)(位于C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)UnityEditor。PostprocessBuildPlayer。后处理(UnityEditor.BuildTarget组目标组,UnityEditor.BuildTarget目标,系统。字符串installPath,系统。字符串companyName,系统字符串productName,系统。Int32宽度,系统。Int32高度,UnityEditor。BuildOptions选项,UnityEditor。RuntimeClassRegistry使用ClassRegistry,UnityEditor。建筑报告。BuildReport报告)(位于C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)UnityEngine。GUI实用程序:ProcessEvent(Int32,IntPtr)

我对团结和堆叠很陌生,所以不要对我太苛刻。

尝试将您的项目移动到另一个位置。这可能是OneDrive的文件权限问题。

通常情况下,大多数WebGL错误都可以通过清除缓存来修复

这可以通过编辑->首选项来完成,并在首选项窗口中转到GL缓存选项卡,然后单击清除缓存。

最新更新