<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — quickly disable/enable large sets of markers, Drawing Elements, and..]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1595&amp;type=atom" />
	<updated>2020-08-28T19:03:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1595</id>
		<entry>
			<title type="html"><![CDATA[Re: quickly disable/enable large sets of markers, Drawing Elements, and..]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6634#p6634" />
			<content type="html"><![CDATA[<p>Hello.</p><p>2D markers do not have a single parent.<br />2D markers are drawn in one mesh.</p><p>To be honest, I never thought that 3D markers needed a single parent.<br />But, you are right, and in the next version 3D markers will have a single parent.</p><p>Unfortunately, the current version of Online Maps has no way to enable / disable all 3D markers.<br />And instance.SetActive (false) won&#039;t work.<br />Sooner or later, the map (depending on your interaction with the map) will enable them.</p><p>What you can do right now:<br />// Create a new container for 3D markers.<br />GameObject container = new GameObject (&quot;Container&quot;);<br />container.transform.SetParent (map.transform, false);<br />// When creating 3D markers, change the parent.<br />marker3d.instance.transform.SetParent (container.transform);<br />// All your 3d markers will be grouped in one parent, which you can disable / enable when you need it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-08-28T19:03:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6634#p6634</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[quickly disable/enable large sets of markers, Drawing Elements, and..]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6630#p6630" />
			<content type="html"><![CDATA[<p>Hi - I have large sets of OnlineMapsMarker, OnlineMapsMarker3D, and OnlineMapsDrawingElement, and am looking for a way to quickly enable and disable them. </p><p>I see that all the Markers under a single Markers parent, all drawing elements other under a single Drawings parent, and then all the makers3d objects are childed directly under the map objects itself.</p><p>It seems that iterating through all the objects to enable/disable&nbsp; <br />- Markers and enabling/disabling <br />- Drawing Elements and 3dMarkers, setting instance.SetActive(false)<br />takes quite some time visually for the map to update. Not sure why, as it seems the object states change quickly, but the update on the map takes much longer&nbsp; </p><p> Is there a way to group makers/elements under different parent objects to quickly enable/disable or ?</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[robertottinger]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1365</uri>
			</author>
			<updated>2020-08-28T13:45:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6630#p6630</id>
		</entry>
</feed>
