<?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 — Click Event for 3DMarker]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=280</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=280&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Click Event for 3DMarker.]]></description>
		<lastBuildDate>Thu, 15 Sep 2016 12:37:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Click Event for 3DMarker]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1260#p1260</link>
			<description><![CDATA[<p>Hello.</p><p>Please make sure that «3D Control Inspector / 3D Markers / Allow Default Marker Events - ON».</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 15 Sep 2016 12:37:46 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1260#p1260</guid>
		</item>
		<item>
			<title><![CDATA[Click Event for 3DMarker]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1259#p1259</link>
			<description><![CDATA[<p>Hi..<br />I added some 3DMarkers to the map but the OnClick events seem not to be fired.</p><div class="codebox"><pre><code>// response comes from the OnlineMapsOSMAPIQuery
private OnComplete(string response)
{
        // Some stuff which gets a node from OSM

        OnlineMapsMarker3D marker3D;
        OnlineMapsControlBase3D control = GetComponent&lt;OnlineMapsControlBase3D&gt; ();
        marker3D = control.AddMarker3D (new Vector2 (node.lon, node.lat), markerPrefab);
        marker3D.label = node.id;
        marker3D.OnClick += OnMarkerClick;

        Debug.Log (&quot;DEBUG: &quot; + String.Format (&quot;Long: {0}, Lat: {1}&quot;, node.lon, node.lat));

        markers.Add (marker3D);
    }
}

private void OnMarkerClick (OnlineMapsMarkerBase marker)
{
    Debug.Log (&quot;DEBUG: &quot; + marker.label);
}</code></pre></div><p>If I click on a marker in the editor or on my smartphone, nothing will be logged to the console.</p><p>Best, Michael</p>]]></description>
			<author><![CDATA[null@example.com (mschakulat)]]></author>
			<pubDate>Thu, 15 Sep 2016 11:31:25 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1259#p1259</guid>
		</item>
	</channel>
</rss>
