Error when Building Project: Error building Player because scripts have compile errors in the editor
You cannot build any your script that contains using UnityEditor; or class/API from the UnityEditor namespace. This is why you should put any script that contains any of these in a folder called Editor. When Unity is building your project, it ignores any script placed in this folder since it considers them as an Editor … Read more