<?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 — How to show tooltip with custom data for 3D Markers]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=777</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=777&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to show tooltip with custom data for 3D Markers.]]></description>
		<lastBuildDate>Thu, 22 Feb 2018 18:31:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3431#p3431</link>
			<description><![CDATA[<p>You were right. My Tooltip prefab wasn&#039;t a UI element <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>It works now. Thanks a lot.</p>]]></description>
			<author><![CDATA[null@example.com (iabhishek)]]></author>
			<pubDate>Thu, 22 Feb 2018 18:31:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3431#p3431</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3422#p3422</link>
			<description><![CDATA[<p>Hello.</p><p>There can be two reasons for this error:<br />1. You did not specify a container.<br />Solution: specify container Canvas.<br />2. (Most likely) Your tooltipPrefab is not a UI element.<br />Solution: use UI element for tooltipPrefab.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 21 Feb 2018 21:21:54 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3422#p3422</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3418#p3418</link>
			<description><![CDATA[<p>Hi</p><p>I created a Canvas element (image attached) and added that to the script but I got this error:</p><p>NullReferenceException: Object reference not set to an instance of an object<br />InfinityCode.OnlineMapsExamples.uGUICustomTooltipExample.OnUpdateLate () (at Assets/Infinity Code/Online maps/Examples (API usage)/uGUI/uGUICustomTooltipExample.cs:46)<br />OnlineMaps.Update () (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:2210)</p><br /><p>on this line in the script:<br />(tooltip.transform as RectTransform).SetParent(container.transform);</p><p>I then tried adding a child Canvas element to the parent Canvas element and adding that to the script but again same error.</p><p>What am I missing?</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (iabhishek)]]></author>
			<pubDate>Wed, 21 Feb 2018 18:35:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3418#p3418</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3387#p3387</link>
			<description><![CDATA[<p><a href="https://docs.unity3d.com/Manual/UICanvas.html">https://docs.unity3d.com/Manual/UICanvas.html</a></p><p>It must be a root canvas or any child element.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 13 Feb 2018 02:15:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3387#p3387</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3386#p3386</link>
			<description><![CDATA[<p>Thanks very much for reply.</p><p>I used uGUICustomTooltipForAllMarkersExample but it is asking for Canvas for container. Can you tell me what canvas should I give it?</p>]]></description>
			<author><![CDATA[null@example.com (iabhishek)]]></author>
			<pubDate>Mon, 12 Feb 2018 19:19:09 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3386#p3386</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3378#p3378</link>
			<description><![CDATA[<p>Hello.</p><p>You can store any data in customData, but that does not mean that Online Maps will use this.<br />Online Maps does not know what kind of data it is.<br />You should read this and if you want to show it on the tooltip with marker.label, or by any other way, for example using the custom tooltip drawer:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/uGUICustomTooltipForAllMarkersExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 12 Feb 2018 02:57:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3378#p3378</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3374#p3374</link>
			<description><![CDATA[<p>I managed to add the tooltip as follows </p><p>OnlineMapsMarker3D marker1 = control.AddMarker3D(new Vector2(lng, lat), markerPrefab);<br />marker1.label = &quot;This is a label&quot;;</p>]]></description>
			<author><![CDATA[null@example.com (Neil)]]></author>
			<pubDate>Sun, 11 Feb 2018 15:59:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3374#p3374</guid>
		</item>
		<item>
			<title><![CDATA[How to show tooltip with custom data for 3D Markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3373#p3373</link>
			<description><![CDATA[<p>Hello everyone</p><p>I am a new-bee so please excuse if this is a stupid question. </p><p>I want to show tooltip on my 3D markers. I have used the Marker3D_Example.cs script to show the marker. I added custom data to the markers on the lines of MarkerCustomDataExample.cs:</p><div class="codebox"><pre><code>OnlineMapsControlBase3D control = OnlineMapsControlBase3D.instance;

//lat, lng are float values.
OnlineMapsMarker3D marker1 = control.AddMarker3D(new Vector2(lng, lat), markerPrefab);

//city, latitutude, longitude are string values.
OnlineMapsXML xml1 = new OnlineMapsXML(&quot;MarkerData&quot;);
xml1.Create(&quot;ID&quot;, city+&quot; &quot;+latitude + &quot; &quot; + longitude);
xml1.Create (&quot;Coordinates&quot;, latitude + &quot; &quot; + longitude);

marker1.customData = xml1;</code></pre></div><p>But this doesn&#039;t show tooltip. </p><p>Can anyone please help me with this?</p><p>Thanks<br />Abhishek</p>]]></description>
			<author><![CDATA[null@example.com (iabhishek)]]></author>
			<pubDate>Sun, 11 Feb 2018 13:36:46 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3373#p3373</guid>
		</item>
	</channel>
</rss>
