I have a WebGL app I have been working on, I recently updated to 5.3 on Unity, this also happens on the cloud build for webGL, same source code, but I don’t see what or where issue possibly came from as the code hasn’t changed between before and the update.
I was hoping someone had come across this before and they found a way of debugging/found out how to fix it, Google is not helping me as much as I hoped.
These are the 2 errors I get each build.
DirectoryNotFoundException: Destination directory not found: Temp/StagingArea/Data/Resources
System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:120)
System.IO.File.Copy (System.String sourceFileName, System.String destFileName) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:86)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:292)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
Error building Player: DirectoryNotFoundException: Destination directory not found: Temp/StagingArea/Data/Resources
Also yes I know it means a directory isn’t there and it isn’t the only two items in that directory are
./Managed
./data.unity3d
I guess i’m asking what could possibly stop the Resources folder from being made, an issue with a shader, library or even the main source code? The build in the editor works fine with no issues, so I’m really stumped right now.
Any ideas?