Hi, i have a videogame class at school that is pretty fun where we use the unity version 2019.4.38f1
And we have to make a build on pc of what we have this far to get our grade but every time i try to make it i get these errors
What the errors mean is, when you go to build, the specified code is not available. This is due to stuff like conditional compilation, which includes/excludes code based on certain circumstances. The main one being either operating in the editor, or in a build.
These errors are a bit weird as this is coming out of Unity’s own UI package, and not any of your code. Maybe in the Player settings turn off any code stripping?
Thank you so much for trying to help! but it didn’t do anything the errors are still there for some reason even when i removed and added com.unity.ugui and turned off the code stripping, this is really weird.
These package errors can sometimes also occur when a package version and the Unity editor version are incompatible. Check the package manager to see if there are any updates available to packages, specifically the ones causing issues, and upgrade those.
Other than that you have two general options to try: upgrade to a newer editor version (2020.3) or create a new, empty project with your current editor version, make sure it does build without issues. Then export a .unitypackage of your scene(s) and include all dependent assets. Then import the .unitypackage to the new project, test that it works. You may have to restore project settings, either manually or by copying the given ProjectSettings/*.asset file to the new project. You may also have to install any missing packages in the package manager. But in the end it may be the way to get the project working again rather quickly, provided this transfer goes smoothly.