<?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 — No way to set the visibilty of a 3DMarker]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=481</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=481&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in No way to set the visibilty of a 3DMarker.]]></description>
		<lastBuildDate>Tue, 28 Mar 2017 19:39:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: No way to set the visibilty of a 3DMarker]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2114#p2114</link>
			<description><![CDATA[<p>Hello.</p><p>Use OnlineMapsMarkerBase.enabled.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerBase.html#acc6d3dceb61dc8d5078c18aac7ed8d01">http://infinity-code.com/doxygen/online … aac7ed8d01</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 28 Mar 2017 19:39:04 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2114#p2114</guid>
		</item>
		<item>
			<title><![CDATA[Re: No way to set the visibilty of a 3DMarker]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2112#p2112</link>
			<description><![CDATA[<p>Fixed this by adding a &quot;ShowMarker&quot; private variable and Property. Updated logic in the visible property as well:</p><p>protected bool visible<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; get { return _visible; }<br />&nbsp; &nbsp; &nbsp; &nbsp; set<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _visible = value;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (_visible &amp;&amp; _showMarker)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; instance.SetActive(true);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(_visible &amp;&amp; !_showMarker)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; instance.SetActive(false);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(!_visible)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; instance.SetActive(false);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; /// &lt;summary&gt;<br />&nbsp; &nbsp; /// Adds control over the visibility of a marker without affecting the &quot;_visible&quot; logic<br />&nbsp; &nbsp; /// that is in place.<br />&nbsp; &nbsp; /// &lt;/summary&gt;<br />&nbsp; &nbsp; public bool ShowMarker<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; get<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return _showMarker;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; set<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _showMarker = value;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(_visible &amp;&amp; _showMarker)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; instance.SetActive(_showMarker);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(!_showMarker)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; instance.SetActive(false);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (bp10719)]]></author>
			<pubDate>Tue, 28 Mar 2017 19:32:09 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2112#p2112</guid>
		</item>
		<item>
			<title><![CDATA[No way to set the visibilty of a 3DMarker]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2109#p2109</link>
			<description><![CDATA[<p>There is no way to reliably set the visibility of a 3DMarker.</p><p>The visible property, which was previously public, is now private. This makes sense, as it looks like the tool is using this to hide or show the marker based on if it is offscreen and such. </p><p>The issue is that the visible property sets the gameobject either active or inactive based on this, which means that the marker&#039;s gameobject can&#039;t be set to inactive (outside of the OnlineMaps code) to hide it either, because the visible property will change this on Update.</p><p>There should be some other property or logic that controls if the marker should be shown in general.</p>]]></description>
			<author><![CDATA[null@example.com (bp10719)]]></author>
			<pubDate>Tue, 28 Mar 2017 18:04:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2109#p2109</guid>
		</item>
	</channel>
</rss>
