Im using the most recent version of Unity and I uploaded a script and Im getting the error
"Error CS0103: The name “UnityEditor” does not exist in the current context. How would I fix this?
Here is the code where it takes me to.
return UnityEditor.AssetDatabase.LoadAssetAtPath(iconPath, typeof(Texture)) as Texture;