Error when building, 'The type or namespace name `UnityEditor' could not be found.'

Hi All

I’m able to debug and run my game in the Unity3d 4.6 editor but when I come to build for linux it throws out the errors like the following:

Assets/Plugins/AstarPathfindingProject/Editor/SeekerEditor.cs(12,7): error CS0246: The type or namespace name `UnityEditor’ could not be found. Are you missing a using directive or an assembly reference?

Any idea what I’m doing wrong?

Thanks in advance

Mike

Hi

Due to Unity limitations, the package doesn’t support being able to be moved into the Plugins folder. If you need that, please move the Editor folder outside the Plugins folder.

Ok Scratch that! figured out I had to move the Editor folder into the Assets root folder!