<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Buildings not cleaned up when map deactivated]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=629&amp;type=atom" />
	<updated>2017-08-23T01:54:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=629</id>
		<entry>
			<title type="html"><![CDATA[Re: Buildings not cleaned up when map deactivated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2720#p2720" />
			<content type="html"><![CDATA[<p>I see.<br />The problem is fixed, and now it will work correctly when disabling GameObject.<br />The new version will be available soon.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-08-23T01:54:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2720#p2720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Buildings not cleaned up when map deactivated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2719#p2719" />
			<content type="html"><![CDATA[<p>Your video shows you <strong>disabling</strong> the <strong>component</strong>.</p><p>I am <strong>deactivating</strong> a parent <strong>GameObject</strong>.</p><p>It looks like the latest version of OnlineMapsBuildings.cs has defined an OnDisable() function (which Unity will automatically call if the GameObject becomes inactive), and that function is ultimately (on line 192) setting &quot;enabled = false&quot;, which disables the component and prevents it from running anything when the GameObject is subsequently made active again.</p><p>Removing that line appears to fix the issue.</p>]]></content>
			<author>
				<name><![CDATA[jlennert]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=531</uri>
			</author>
			<updated>2017-08-23T01:35:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2719#p2719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Buildings not cleaned up when map deactivated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2718#p2718" />
			<content type="html"><![CDATA[<p>I rechecked disabling/enabling of the buildings component, and this works correctly.<br />Video:<br /><a href="https://www.dropbox.com/s/6lv03704nsouigs/2017-08-23%20-%200001.mp4?dl=0">https://www.dropbox.com/s/6lv03704nsoui … 1.mp4?dl=0</a></p><p>Perhaps some extra action is required to stop this work?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-08-22T23:50:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2718#p2718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Buildings not cleaned up when map deactivated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2713#p2713" />
			<content type="html"><![CDATA[<p>I have downloaded and applied the new version.</p><p>Now, buildings are removed when the map is deactivated, but they don&#039;t come back when I re-activate the map.</p>]]></content>
			<author>
				<name><![CDATA[jlennert]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=531</uri>
			</author>
			<updated>2017-08-21T19:10:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2713#p2713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Buildings not cleaned up when map deactivated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2712#p2712" />
			<content type="html"><![CDATA[<p>The problem is fixed.<br />The new version is already available through the built-in update system.<br />In Unity Asset Store, a new version will be available within two weeks (due to the long approval time for new versions).</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-08-19T13:54:56Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2712#p2712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Buildings not cleaned up when map deactivated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2710#p2710" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thank you for bug report.<br />We&#039;ll check it out and release the update as quickly as possible.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-08-19T11:26:31Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2710#p2710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Buildings not cleaned up when map deactivated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2707#p2707" />
			<content type="html"><![CDATA[<p>I&#039;ve got a map with these components:</p><p>Online Maps<br />Online Maps Tile Set Control<br />Online Maps Buildings</p><p>Every time I deactivate the game object that is parent to the map, and then reactivate it, the map gets an entirely new set of buildings.&nbsp; The old buildings stick around, but no longer scroll with the map.</p>]]></content>
			<author>
				<name><![CDATA[jlennert]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=531</uri>
			</author>
			<updated>2017-08-18T20:30:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2707#p2707</id>
		</entry>
</feed>
