<?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 — Map Tileset instance NullReferenceException]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=357</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=357&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Map Tileset instance NullReferenceException.]]></description>
		<lastBuildDate>Sat, 24 Dec 2016 00:25:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Map Tileset instance NullReferenceException]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1576#p1576</link>
			<description><![CDATA[<p>I see what&#039;s happening here...</p><p>I use a state machine pattern for my Unity projects.&nbsp; Basically going from 1 state to another state (where both states have tileset map) there is a time when 1 state is ending, and 1 state is beginning, which led to the occurrence of two tileset instances.&nbsp; By moving the tileset reference code to the endingState() functions, the null ref is gone.</p>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Sat, 24 Dec 2016 00:25:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1576#p1576</guid>
		</item>
		<item>
			<title><![CDATA[Map Tileset instance NullReferenceException]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1575#p1575</link>
			<description><![CDATA[<p>I have a problem which I&#039;m trying to track down.&nbsp; The app starts and loads a tileset map.&nbsp; When user clicks a specific button, I unload current scene and load a new scene, which has its own tileset map, do some stuff, then close scene and load first scene from scratch. This all works fine, but going back to the original scene&nbsp; I get a NullReferenceException when I hit this line:</p><br /><p>&nbsp; &nbsp; &lt;code&gt;Vector3 pipPos = OnlineMapsTileSetControl.instance.GetWorldPosition(lon, lat);&lt;/code&gt;</p><p>It seems the OnlineMapsTileSetControl.instance is null.&nbsp; </p><p>Is there anything special that I need to do for multiple TileSet/Maps?&nbsp; I&#039;m not running more than 1 at a time.</p><p>Thanks, I&#039;m hoping I can get this figured out.&nbsp; After hours of testing and commenting-things out I figured it was time to post for help!</p>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Fri, 23 Dec 2016 23:14:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1575#p1575</guid>
		</item>
	</channel>
</rss>
