<?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 Update Finished Callback ?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=546</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=546&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Map Update Finished Callback ?.]]></description>
		<lastBuildDate>Mon, 29 Jan 2018 00:13:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Map Update Finished Callback ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3296#p3296</link>
			<description><![CDATA[<p>This code is still working.<br />But in Online Maps v2.5.14+ it&#039;s easier to use OnlineMapsTile.OnAllTilesLoaded.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 29 Jan 2018 00:13:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3296#p3296</guid>
		</item>
		<item>
			<title><![CDATA[Re: Map Update Finished Callback ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3293#p3293</link>
			<description><![CDATA[<p>Is this code still what should be used? I was using OnMapUpdated, but it&#039;s getting called multiple times. OnMapCompleteLoaded doesn&#039;t appear to be in the current version.</p>]]></description>
			<author><![CDATA[null@example.com (Quidam)]]></author>
			<pubDate>Sun, 28 Jan 2018 00:42:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3293#p3293</guid>
		</item>
		<item>
			<title><![CDATA[Re: Map Update Finished Callback ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2358#p2358</link>
			<description><![CDATA[<p>Hello.</p><p>Something like that:<br /></p><div class="codebox"><pre><code>using System;
using UnityEngine;

public class CheckMapCompleteLoaded:MonoBehaviour
{
    public static Action OnMapCompleteLoaded;

    private void Start()
    {
        OnMapCompleteLoaded += () =&gt; Debug.Log(&quot;Complete Loaded&quot;);
        OnlineMaps.instance.OnMapUpdated += OnMapUpdated;
    }

    private void OnMapUpdated()
    {
        lock (OnlineMapsTile.tiles)
        {
            if (OnlineMapsTile.tiles.Count == 0) return;
            foreach (OnlineMapsTile t in OnlineMapsTile.tiles)
            {
                // Check tile status
                // If status == loading or status == none (not started), then wait more
                if (t.status == OnlineMapsTileStatus.loading || t.status == OnlineMapsTileStatus.none) return;
            }
        }

        OnlineMaps.instance.OnMapUpdated -= OnMapUpdated;
        if (OnMapCompleteLoaded != null) OnMapCompleteLoaded();
        Destroy(this);
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 15 May 2017 20:23:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2358#p2358</guid>
		</item>
		<item>
			<title><![CDATA[Map Update Finished Callback ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2354#p2354</link>
			<description><![CDATA[<p>Is there a Callback when the Map has completed it&#039;s update e.g. all tiles have received their coresponding texture (and no gray spots left) ?</p>]]></description>
			<author><![CDATA[null@example.com (stefaneischer)]]></author>
			<pubDate>Mon, 15 May 2017 10:47:06 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2354#p2354</guid>
		</item>
	</channel>
</rss>
