The script I have plays fine in Editor. However, when I try to Build and Run (I also tried just Build), I would receive a few different error messages. I have tried saving the build in a folder that is not the Asset folder and have tried reimporting all my assets. I am currently trying to Build and Run on Windows, but plan on implementing my game on iOS later. Please help.
Error building Player because scripts had compiler errors
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Assets\MainMenu.cs(4,22): error CS0234: The type or namespace name 'Hosting' does not exist in the namespace 'System.Runtime' (are you missing an assembly reference?)
↧