Topic: Errors in your code. Need to use UnityEditor.Editor reference.

First of with code like this:

public class OnlineMapsBuildingBaseEditor:Editor

I'm getting an error: 'Editor' is a namespace but is used like a type. Type name expected, but namespace name found.

If I change it to:

public class OnlineMapsBuildingBaseEditor:UnityEditor.Editor

it seams to fix the issue. Is this the correct course of action?

Re: Errors in your code. Need to use UnityEditor.Editor reference.

Hello.

You will have problems with 99% of assets that contain scripts, because it is a very bad practice to give names to classes or namespaces in the global namespace as built-in Unity or C# classes.
The remaining 1% simply do not implement custom editors for their scripts.

Solution: Rename your namespace.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Errors in your code. Need to use UnityEditor.Editor reference.

I see the problem now. In my "Assembly-CSharp-Editor" project, I've found the namespace "Editor" used.

The thing is I didn't type it in there, it was when I included a script for scene auto loading. Either way I'll go in and rename that namespace and that should alleviate the issue, as you've suggested.

Thanks.