<?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 — Deleting 3D Marker On Click]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2160</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2160&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Deleting 3D Marker On Click.]]></description>
		<lastBuildDate>Thu, 07 Sep 2023 04:59:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9180#p9180</link>
			<description><![CDATA[<p>No worries, that worked!</p><p>Thanks for the help!</p>]]></description>
			<author><![CDATA[null@example.com (mmeuwissen)]]></author>
			<pubDate>Thu, 07 Sep 2023 04:59:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9180#p9180</guid>
		</item>
		<item>
			<title><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9175#p9175</link>
			<description><![CDATA[<p>Oops. Sorry, I wrote a reply without checking.<br />I&#039;ll try to be more careful in the future.</p><p>I&#039;ve updated the code above so as not to keep incorrect information on the forum.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 05 Sep 2023 10:23:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9175#p9175</guid>
		</item>
		<item>
			<title><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9174#p9174</link>
			<description><![CDATA[<p>Now I&#039;m getting the error: Cannot convert from OnlineMapsMarkerBase to OnlineMapsMarker3D.</p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (mmeuwissen)]]></author>
			<pubDate>Tue, 05 Sep 2023 04:30:05 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9174#p9174</guid>
		</item>
		<item>
			<title><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9173#p9173</link>
			<description><![CDATA[<p>Hello.</p><div class="codebox"><pre><code>control.marker3DManager.Remove(marker as OnlineMapsMarker3D);</code></pre></div><p><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsInteractiveElementManager.html#a1d97859df02b6392f57778a678291b62">https://infinity-code.com/doxygen/onlin … a678291b62</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 04 Sep 2023 18:35:03 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9173#p9173</guid>
		</item>
		<item>
			<title><![CDATA[Deleting 3D Marker On Click]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9172#p9172</link>
			<description><![CDATA[<p>I&#039;m trying to remove a marker when it&#039;s clicked on but I&#039;m getting OnlineMapsControlBase3D doesn&#039;t contain the definition for RemoveMarker3D.</p><p>What do I need to change?:<br />&nbsp; &nbsp; public OnlineMapsControlBase3D control;<br />&nbsp; &nbsp; public GameObject markerPrefab;<br />&nbsp; &nbsp; public OnlineMapsMarker3D marker3D;</p><p>&nbsp; &nbsp; void Start()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; if (control == null) control = OnlineMapsControlBase3D.instance;</p><p>&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; if (control == null)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.LogError(&quot;You must use the 3D control (Texture or Tileset).&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Vector2 markerPosition = new Vector2(-93.25494f,&nbsp; 44.97129f);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; marker3D = control.marker3DManager.Create(markerPosition, markerPrefab);<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; marker3D.range = new OnlineMapsRange(1, 50);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; marker3D.OnClick += OnMarkerClick;</p><p>&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; private void OnMarkerClick(OnlineMapsMarkerBase marker)<br />&nbsp; &nbsp; { <br />&nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(marker.label);<br />&nbsp; &nbsp; &nbsp; &nbsp; control.RemoveMarker3D(marker);<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (mmeuwissen)]]></author>
			<pubDate>Mon, 04 Sep 2023 18:27:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9172#p9172</guid>
		</item>
	</channel>
</rss>
