<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Map not rendering after v3 update]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1225&amp;type=atom" />
	<updated>2019-06-14T12:54:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1225</id>
		<entry>
			<title type="html"><![CDATA[Re: Map not rendering after v3 update]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5150#p5150" />
			<content type="html"><![CDATA[<p>Found the issue. It is related to the update but was due to me not cleaning up properly some event handlers. Basically, I had a listener on the &quot;OnPreloadTiles&quot; action in OnlineMaps. After the update, this action was moved to another class and became a <strong> static </strong> action. I believe the static modifier causes &quot;OnPreloadTiles&quot; to preserve its list of listeners when a new scene is loaded. However, these listeners are evidently destroyed in the transition. Thus, I had a NullPointerException occurring when OnPreloadTiles was invoked and it caused the rendering process to fail.</p><br /><p>Short version: remember to unsubscribe from OnPreloadTiles once you&#039;re done with it, for example in an OnDestroy() call <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[LKDev]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1016</uri>
			</author>
			<updated>2019-06-14T12:54:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5150#p5150</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Map not rendering after v3 update]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5139#p5139" />
			<content type="html"><![CDATA[<p>Hello.</p><p>I have never seen a such problem.<br />If possible, please send your scene as a package to us (support@infinity-code.com).<br />I will check why this is not working correctly.<br />To be clear:<br />I do not need your working project. I need ANY project where the problem is appears.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-06-11T09:01:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5139#p5139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Map not rendering after v3 update]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5138#p5138" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I just updated my Online Maps package from 2.5 to 3.3.0.1. Since the update, the map stopped rendering in one situation.</p><p>- In the faulty scene, there are two cameras, one of them is used for the map<br />- At the start of the scene, the map GameObject is disabled after it finishes initializing<br />- When the user presses a button, the map is activated and the cameras are switched<br />- The camera switching works, but the map never starts rendering (in the editor, it only appears as an empty wireframe mesh)</p><p>After the update, the map object was broken due to missing scripts but it got fixed once I added a Tileset control script. Note that I have another scene where there is a single camera and the map is always the &quot;main&quot; view. In this case, everything works nicely. </p><p>Is it a known issue? If not, how can I track the source of the problem? </p><p>Thanks in advance!</p>]]></content>
			<author>
				<name><![CDATA[LKDev]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1016</uri>
			</author>
			<updated>2019-06-11T07:26:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5138#p5138</id>
		</entry>
</feed>
