<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=974&amp;type=atom" />
	<updated>2018-11-29T14:20:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=974</id>
		<entry>
			<title type="html"><![CDATA[Re: Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4319#p4319" />
			<content type="html"><![CDATA[<p>I see the problem now. In my &quot;Assembly-CSharp-Editor&quot; project, I&#039;ve found the namespace &quot;Editor&quot; used.</p><p>The thing is I didn&#039;t type it in there, it was when I included a script for scene auto loading. Either way I&#039;ll go in and rename that namespace and that should alleviate the issue, as you&#039;ve suggested.</p><p>Thanks.</p>]]></content>
			<author>
				<name><![CDATA[Lurch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=844</uri>
			</author>
			<updated>2018-11-29T14:20:05Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4319#p4319</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4313#p4313" />
			<content type="html"><![CDATA[<p>Hello.</p><p>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.<br />The remaining 1% simply do not implement custom editors for their scripts.</p><p>Solution: Rename your namespace.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-11-28T21:42:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4313#p4313</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4311#p4311" />
			<content type="html"><![CDATA[<p>First of with code like this:</p><div class="codebox"><pre><code>public class OnlineMapsBuildingBaseEditor:Editor</code></pre></div><p>I&#039;m getting an error: &#039;Editor&#039; is a namespace but is used like a type. Type name expected, but namespace name found.</p><p>If I change it to:</p><div class="codebox"><pre><code>public class OnlineMapsBuildingBaseEditor:UnityEditor.Editor</code></pre></div><p>it seams to fix the issue. Is this the correct course of action?</p>]]></content>
			<author>
				<name><![CDATA[Lurch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=844</uri>
			</author>
			<updated>2018-11-28T16:07:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4311#p4311</id>
		</entry>
</feed>
