- Home /
Error CS0246 with UnityCar help !
Hi, i bought UnityCar and when i try to compile it i obtain thoose errors*
Assets/UnityCarScripts/UnityCar.cs(10,7): error CS0246: The type or namespace name
UnityEditor' could not be found. Are you missing a using directive or an assembly reference? > Assets/UnityCarScripts/UnityCar.cs(10,7): error CS0246: The type or namespace nameUnityEditor' could not be found. Are you missing a using directive or an assembly reference? Error building Player because scripts had compiler errors
There is the code
>DELETED
Are you allowed to post this code online? Not sure if it was written by you, or purchased from unitypackages.net.
Answer by Graham-Dunnett · Apr 07, 2014 at 06:53 PM
The first line of code says that the script needs UnityEditor code. Which makes it an Editor script. Which means it needs to be stored in a folder called Editor.
Answer by igrize · Dec 26, 2014 at 11:29 AM
Russian translate: Закиньте скрипт UnityCar.cs из папки UnityCarScripts в папку Editor и радуйтесь жизни.
Your answer