<?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 — Waiting for Elevation before Baking NavMesh]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=735</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=735&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Waiting for Elevation before Baking NavMesh.]]></description>
		<lastBuildDate>Fri, 29 Dec 2017 17:42:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Waiting for Elevation before Baking NavMesh]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3177#p3177</link>
			<description><![CDATA[<p>Awesome, that&#039;s what I needed. Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Quidam)]]></author>
			<pubDate>Fri, 29 Dec 2017 17:42:13 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3177#p3177</guid>
		</item>
		<item>
			<title><![CDATA[Re: Waiting for Elevation before Baking NavMesh]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3169#p3169</link>
			<description><![CDATA[<p>Hello.</p><p>This means that new elevation values has been received.<br />To paraphrase: the request for downloading elevation data was completed successfully.<br />But this does not mean that the map was redrawn.</p><p>There must be something like:<br /></p><div class="codebox"><pre><code>private void OnElevationUpdated()
{
    OnlineMapsTileSetControl.instance.OnMeshUpdated += OnMeshUpdated;
}

private void OnMeshUpdated()
{
    OnlineMapsTileSetControl.instance.OnMeshUpdated -= OnMeshUpdated;
    // Elevation updated and mesh redrawn.
}</code></pre></div><p>Or, instead of OnlineMapsTileSetControl.OnMeshUpdated, use OnlineMaps.OnMapUpdated.<br />You will get the same result.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 28 Dec 2017 07:13:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3169#p3169</guid>
		</item>
		<item>
			<title><![CDATA[Waiting for Elevation before Baking NavMesh]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3167#p3167</link>
			<description><![CDATA[<p>I&#039;m using the TilesetControl with elevation turned on to create a NavMesh that&#039;s baked at runtime. I need to wait to do so (and to spawn anything on it) until after the elevation has been reflected on the control, as it appears flat first, then pops into relief. I&#039;ve tried using OnElevationUpdated(), but I&#039;m not sure I&#039;m using it properly. </p><p>I thought it would get called once the elevation has been reflected in the mesh, but that doesn&#039;t seem to be happening. Is that the right event, or is there another way to know when the geometry accurately reflects the elevation data? It&#039;s not entirely clear to me what is meant by &quot;This event is called when a new elevation value received.&quot;</p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (Quidam)]]></author>
			<pubDate>Thu, 28 Dec 2017 00:33:56 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3167#p3167</guid>
		</item>
	</channel>
</rss>
