Hey, when i try to build my game, i get the following errors:
![alt text][1]
Im using the UnityEditor namespace for the OpenFolderPanel function and for the OpenFilePanel function. When i start the game in the Editor, everything works fine but when try ti build I get these errors. Can someone tell me what I did wrong???
If you were just using OpenFolderPanel etc in the Editor you can do:
#if UNITY_EDITOR
using UnityEditor;
#endif
I had that error with an Audio asset when I tried to build, so I found the above answer which worked. However I’m guessing you might be trying to use those Unity Editor features at runtime so this may not work for you.