<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to show tooltip with custom data for 3D Markers]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=777&amp;type=atom" />
	<updated>2018-02-22T18:31:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=777</id>
		<entry>
			<title type="html"><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3431#p3431" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[iabhishek]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=657</uri>
			</author>
			<updated>2018-02-22T18:31:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3431#p3431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3422#p3422" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-02-21T21:21:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3422#p3422</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3418#p3418" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[iabhishek]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=657</uri>
			</author>
			<updated>2018-02-21T18:35:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3418#p3418</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3387#p3387" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-02-13T02:15:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3387#p3387</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3386#p3386" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[iabhishek]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=657</uri>
			</author>
			<updated>2018-02-12T19:19:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3386#p3386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3378#p3378" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-02-12T02:57:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3378#p3378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3374#p3374" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Neil]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=658</uri>
			</author>
			<updated>2018-02-11T15:59:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3374#p3374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to show tooltip with custom data for 3D Markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3373#p3373" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[iabhishek]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=657</uri>
			</author>
			<updated>2018-02-11T13:36:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3373#p3373</id>
		</entry>
</feed>
