<?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 — Changing Overlay at runtime]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=80</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=80&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Changing Overlay at runtime.]]></description>
		<lastBuildDate>Tue, 09 Feb 2016 10:55:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=336#p336</link>
			<description><![CDATA[<p>Thanks Alex ;-)</p>]]></description>
			<author><![CDATA[null@example.com (nigel.moore)]]></author>
			<pubDate>Tue, 09 Feb 2016 10:55:17 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=336#p336</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=335#p335</link>
			<description><![CDATA[<p>If you use this script, it&#039;s even easier. <br />You need to clear the list of items:<br /></p><div class="codebox"><pre><code>items.Clear();</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 09 Feb 2016 10:46:27 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=335#p335</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=334#p334</link>
			<description><![CDATA[<p>Thanks for your response. I am actually using a slightly modified version of a script you posted here <a href="http://forum.infinity-code.com/viewtopic.php?id=51">http://forum.infinity-code.com/viewtopic.php?id=51</a> to display an overlay over the map tiles, it is modified only so it fits into the dependency injection framework that I use. When a different overlay is required I just change the path to the overlay tiles - but I have to manually change the zoom level for this to be reflected immediately. So my question is - is there a better way of doing this?</p><p>Thanks</p><p>Nigel</p>]]></description>
			<author><![CDATA[null@example.com (nigel.moore)]]></author>
			<pubDate>Tue, 09 Feb 2016 08:31:46 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=334#p334</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=330#p330</link>
			<description><![CDATA[<p>Hello.</p><p>You need to unload customData.<br />Something like this:</p><div class="codebox"><pre><code>lock (OnlineMapsTile.tiles)
{
    foreach (OnlineMapsTile t in OnlineMapsTile.tiles)
    {
        CData data = t.customData as CData;
        if (data != null)
        {
            if (data.texture != null) Destroy(data.texture);
            t.customData = null;
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 08 Feb 2016 18:43:25 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=330#p330</guid>
		</item>
		<item>
			<title><![CDATA[Changing Overlay at runtime]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=329#p329</link>
			<description><![CDATA[<p>Hi,</p><p>I am trying to change a map overlay (created using MapTiler) at runtime and have noticed that it needs a change of zoom to occur before the change is reflected in the view. Is there a way of showing a change of overlay tiles without altering the zoom of the map?</p><p>Thanks</p><p>Nige</p>]]></description>
			<author><![CDATA[null@example.com (nigel.moore)]]></author>
			<pubDate>Mon, 08 Feb 2016 17:14:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=329#p329</guid>
		</item>
	</channel>
</rss>
