<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=974</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=974&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Errors in your code. Need to use UnityEditor.Editor reference..]]></description>
		<lastBuildDate>Thu, 29 Nov 2018 14:20:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4319#p4319</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Lurch)]]></author>
			<pubDate>Thu, 29 Nov 2018 14:20:05 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4319#p4319</guid>
		</item>
		<item>
			<title><![CDATA[Re: Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4313#p4313</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 28 Nov 2018 21:42:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4313#p4313</guid>
		</item>
		<item>
			<title><![CDATA[Errors in your code. Need to use UnityEditor.Editor reference.]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4311#p4311</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Lurch)]]></author>
			<pubDate>Wed, 28 Nov 2018 16:07:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4311#p4311</guid>
		</item>
	</channel>
</rss>
