I have just finshed making a pong game for my college course, but the game wont build.
I am reciving these four errors:
Error One:
DirectoryNotFoundException: Could not find a part of the path “C:\Users\abraa\OneDrive\Desktop\Intro to Game & Simulation - Comp 391-002\Home Work\Home Work One - Pong Game - Abraar Sadek\Library\PackageCache\com.unity.visualscripting@1.7.8\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll”
System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <9aad1b3a47484d63ba2b3985692d80e9>:0)
System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) (at <9aad1b3a47484d63ba2b3985692d80e9>:0)
Error Two:
Error building Player: 2 errors
Error Three:
Build completed with a result of ‘Failed’ in 14 seconds (14485 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Error Four:
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <0d6ce211ebbc47e1a35a84c3672ff58f>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <0d6ce211ebbc47e1a35a84c3672ff58f>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
First, welcome to Unity. Second, please note, the 2D forum is not for posting about any problem you encounter while making a 2D game but rather 2D specific issues you might encounter. There are dedicated forums for various aspects of Unity such as Editor, Audio, AI, Scripting (etc) that you should use.
This post is better suited to the Editor & General Support forum so I’ll move your post for you.
As mentioned above, it’s likely where you’re storing it and the file-path. I would avoid the Desktop as a place to store things too because you might be encountering file permission problems. The OS is just saying “no” to Unity.