<?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 — multiple 3D markers help]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=457</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=457&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in multiple 3D markers help.]]></description>
		<lastBuildDate>Fri, 10 Mar 2017 15:14:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: multiple 3D markers help]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1973#p1973</link>
			<description><![CDATA[<p>SOLVED:&nbsp; I see that my testing from last night I added one of your example scripts to test marker click counts!&nbsp; Sorry about that.</p>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Fri, 10 Mar 2017 15:14:22 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1973#p1973</guid>
		</item>
		<item>
			<title><![CDATA[Re: multiple 3D markers help]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1971#p1971</link>
			<description><![CDATA[<p>I tried a different prefab, one that has no child objects, and it worked too.&nbsp; So something about my prefab, which has 1 child object, is causing this.</p><p>EDIT:&nbsp; Looks to be specific to my prefab as I tested with another prefab (one with child cube) and it doesn&#039;t cause the problem.&nbsp; </p><p>Do you see anything wrong with this (exact code):</p><div class="codebox"><pre><code>// Get the world position for this pip...
double lat = pipInstance.location.coordinates[0];
double lon = pipInstance.location.coordinates[1];

// Get instance of OnlineMapsControlBase3D (Texture or Tileset)

OnlineMapsControlBase3D control = OnlineMapsControlBase3D.instance;

if (control != null)
{
    
    GameObject pipPrefab = Resources.Load (&quot;pip_marker&quot;) as GameObject;
    if(pipPrefab == null)
        throw new NullReferenceException (&quot;PipMapModelView : LoadMarkers() - Failed to load pip_marker prefab&quot;);

    // Create 3D Pip

    OnlineMapsMarker3D marker3D = control.AddMarker3D(lon,lat, pipPrefab);

    marker3D.OnClick += OnMarkerClick;

    LoadPip(pipInstance, pipPrefab, i, marker3D);

}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Fri, 10 Mar 2017 15:03:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1971#p1971</guid>
		</item>
		<item>
			<title><![CDATA[Re: multiple 3D markers help]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1970#p1970</link>
			<description><![CDATA[<p>Thanks Alex.</p><p>I just tried passing null instead of my prefab and I don&#039;t get the extra (disabled) marker game objects</p><br /><div class="codebox"><pre><code>OnlineMapsMarker3D marker3D = control.AddMarker3D(lon,lat, null);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Fri, 10 Mar 2017 15:01:38 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1970#p1970</guid>
		</item>
		<item>
			<title><![CDATA[Re: multiple 3D markers help]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1968#p1968</link>
			<description><![CDATA[<p>This piece of code looks well.<br />Please show more code (or the whole script).</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 10 Mar 2017 14:58:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1968#p1968</guid>
		</item>
		<item>
			<title><![CDATA[multiple 3D markers help]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1965#p1965</link>
			<description><![CDATA[<p>Quick question,</p><p>Any idea why I get 3 child markers when I&#039;m calling AddMarker 1 time (1 marker is active, the other 2 are disabled)?</p><p>I add one (1) 3D marker at runtime and I see this in the hierarchy:</p><p>Here&#039;s the code:</p><div class="codebox"><pre><code>GameObject pipPrefab = Resources.Load (&quot;marker3D&quot;) as GameObject;
if(pipPrefab == null)
          throw new NullReferenceException (&quot;PipMapModelView : LoadMarkers() - Failed to load marker3D prefab&quot;);

OnlineMapsMarker3D marker3D = control.AddMarker3D(lon,lat, pipPrefab);

marker3D.OnClick += OnMarkerClick;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Fri, 10 Mar 2017 14:46:32 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1965#p1965</guid>
		</item>
	</channel>
</rss>
