<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Deleting 3D Marker On Click]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2160&amp;type=atom" />
	<updated>2023-09-07T04:59:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2160</id>
		<entry>
			<title type="html"><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9180#p9180" />
			<content type="html"><![CDATA[<p>No worries, that worked!</p><p>Thanks for the help!</p>]]></content>
			<author>
				<name><![CDATA[mmeuwissen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2684</uri>
			</author>
			<updated>2023-09-07T04:59:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9180#p9180</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9175#p9175" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-09-05T10:23:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9175#p9175</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9174#p9174" />
			<content type="html"><![CDATA[<p>Now I&#039;m getting the error: Cannot convert from OnlineMapsMarkerBase to OnlineMapsMarker3D.</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[mmeuwissen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2684</uri>
			</author>
			<updated>2023-09-05T04:30:05Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9174#p9174</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Deleting 3D Marker On Click]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9173#p9173" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-09-04T18:35:03Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9173#p9173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Deleting 3D Marker On Click]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9172#p9172" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mmeuwissen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2684</uri>
			</author>
			<updated>2023-09-04T18:27:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9172#p9172</id>
		</entry>
</feed>
