<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — uGUI tooltips not working on example]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=366&amp;type=atom" />
	<updated>2022-01-23T18:25:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=366</id>
		<entry>
			<title type="html"><![CDATA[Re: uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8046#p8046" />
			<content type="html"><![CDATA[<p>That&#039;s great, need this script! <br />Alex you should include this script to Example API.</p>]]></content>
			<author>
				<name><![CDATA[savvas_6]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1113</uri>
			</author>
			<updated>2022-01-23T18:25:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8046#p8046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1618#p1618" />
			<content type="html"><![CDATA[<p>Thank you very much!</p>]]></content>
			<author>
				<name><![CDATA[vlucki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=335</uri>
			</author>
			<updated>2017-01-05T13:43:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1618#p1618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1615#p1615" />
			<content type="html"><![CDATA[<p>Example attached.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-05T12:21:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1615#p1615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1610#p1610" />
			<content type="html"><![CDATA[<p>My bad, I thought it would work for every configuration</p><p>How should I go about changing it to work with Always, then?</p>]]></content>
			<author>
				<name><![CDATA[vlucki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=335</uri>
			</author>
			<updated>2017-01-04T16:45:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1610#p1610</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1609#p1609" />
			<content type="html"><![CDATA[<p>The problem is «Always».<br />This example is made for «On Hover».</p><p>You can quite easily modify the script to make it work for «Always».<br />If you need help with this, I can modify it for you.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-04T16:30:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1609#p1609</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1608#p1608" />
			<content type="html"><![CDATA[<p>I see...</p><p>After watching the video, there are two main things I am doing differenlty.</p><p>&gt; I am displaying the map using uGUI (an image) instead of the tileset (though I believe this doesn&#039;t matter).</p><p>&gt; I have &quot;Show Marker Tooltip&quot;, in the &quot;Advanced&quot; settings, set to &quot;Always&quot; instead of &quot;On Hover&quot;. By doing so, tooltips are no longer drawn (I replicated the setup shown in the video in order to test this).</p><br /><p>Are you able to confirm this?</p>]]></content>
			<author>
				<name><![CDATA[vlucki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=335</uri>
			</author>
			<updated>2017-01-04T16:16:12Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1608#p1608</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1607#p1607" />
			<content type="html"><![CDATA[<p>Hello</p><p>I just checked this example, and everything works well.<br />tooltipMarker is assigned inside of Online Maps.</p><p>Video:<br /><a href="https://www.dropbox.com/s/2svt3rsfi7jbu9s/2017-01-04%20-%200001.mp4?dl=0">https://www.dropbox.com/s/2svt3rsfi7jbu … 1.mp4?dl=0</a><br />Actually this video uses uGUICustomTooltipForAllMarkersExample, but uGUICustomTooltipExample has the same logic.<br />I hope this will help you understand how it works.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-04T14:29:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1607#p1607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[uGUI tooltips not working on example]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1605#p1605" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I&#039;ve been studying Online Maps and found out that both uGUITooltip examples doesn&#039;t seem to work. At least not out of the box (as I assumed they would).</p><p>Basically<br /></p><div class="codebox"><pre><code>OnlineMapsMarker tooltipMarker = OnlineMaps.instance.tooltipMarker as OnlineMapsMarker;</code></pre></div><p>is always null, so nothing is ever drawn.</p><p>I did, however, manage to get it working by putting most of the code found in the <strong>LateUpdate()</strong> method inside the delegate assigned to <strong>OnlineMapsMarkerBase.OnMarkerDrawTooltip</strong>. </p><p>But I am not quite sure this is the correct approach, even more so seeing how the marker is never deleted even when outside the view (it just gets stuck in a corner until I go back to it, then it works just fine).</p><p>What would be the correct way to implement custom uGUI tooltips, then? Should I just cache the tooltips and check every frame if they are out of the view?</p>]]></content>
			<author>
				<name><![CDATA[vlucki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=335</uri>
			</author>
			<updated>2017-01-04T13:24:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1605#p1605</id>
		</entry>
</feed>
