<?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 — NullReferenceException within OnlineMapsControlBase3D]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=792</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=792&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in NullReferenceException within OnlineMapsControlBase3D.]]></description>
		<lastBuildDate>Tue, 13 Mar 2018 04:16:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: NullReferenceException within OnlineMapsControlBase3D]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3456#p3456</link>
			<description><![CDATA[<p>All fixed! I stopped instantiating the map along with the UI and that did the trick. </p><p>Much cleaner this way, thanks for all your help!</p>]]></description>
			<author><![CDATA[null@example.com (hunter.marquis99)]]></author>
			<pubDate>Tue, 13 Mar 2018 04:16:33 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3456#p3456</guid>
		</item>
		<item>
			<title><![CDATA[Re: NullReferenceException within OnlineMapsControlBase3D]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3455#p3455</link>
			<description><![CDATA[<p>I think the possible reason it is instantiating using the state machine.<br />Theoretically, this could create several instances of the map.<br />Please make sure that you always have only one instance of the map.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 13 Mar 2018 02:48:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3455#p3455</guid>
		</item>
		<item>
			<title><![CDATA[Re: NullReferenceException within OnlineMapsControlBase3D]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3454#p3454</link>
			<description><![CDATA[<p>Thank you for the fast response.</p><p>The 3D map is first constructed using the provided map wizard. </p><p>The map is made a child of a UI canvas and is saved as a prefab to be instantiated at runtime by a state machine.</p><p>Once the state is entered, the map is instantiated and the state then gets reference to the OnlineMaps instance, OnlineMapsControlBase3D instance, and OnlineMapsLocationService instance for use within the state. </p><p>After which the events OnLocationChanged, OnCompassChanged, and OnChangeZoom are subscribed to.</p><p>After much debugging it doesnt seem to be anything to do with the state itself because it is able to reach the final point in logic before the error happens.</p><p>I&#039;ve used this same method for a few other states and it has worked fine. I even tried rebuilding the map with the wizard and the same issue persisted.</p>]]></description>
			<author><![CDATA[null@example.com (hunter.marquis99)]]></author>
			<pubDate>Tue, 13 Mar 2018 02:24:57 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3454#p3454</guid>
		</item>
		<item>
			<title><![CDATA[Re: NullReferenceException within OnlineMapsControlBase3D]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3452#p3452</link>
			<description><![CDATA[<p>Hello.</p><p>Please explain in detail how you create the map.<br />It looks as though OnlineMapsControlBase.OnEnable has not yet been invoked.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 12 Mar 2018 21:59:50 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3452#p3452</guid>
		</item>
		<item>
			<title><![CDATA[NullReferenceException within OnlineMapsControlBase3D]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3451#p3451</link>
			<description><![CDATA[<p>After instantiating the map at runtime as a child of a canvas. I am getting reference to OnlineMaps.instance, OnlineMapsControlBase3D.instance, and OnlineMapsLocationService.instance for subscription to the OnLocationChanged, OnCompassChanged, and OnChangeZoom events after which I get a NullReferenceException from the UpdateCameraPosition function within OnlineMapsControlBase3D.</p><p>The exact line I am brought to from the editor is: if (control.smoothZoom &amp;&amp; control.smoothZoomStarted) targetPosition = originalPosition; </p><p>I&#039;m not sure if this is indeed a bug or if I am just simply forgetting to assign something, any ideas?</p>]]></description>
			<author><![CDATA[null@example.com (hunter.marquis99)]]></author>
			<pubDate>Mon, 12 Mar 2018 18:06:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3451#p3451</guid>
		</item>
	</channel>
</rss>
