<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Initially clustered markers don't have custom image?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=560&amp;type=atom" />
	<updated>2017-06-01T15:33:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=560</id>
		<entry>
			<title type="html"><![CDATA[Re: Initially clustered markers don't have custom image?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2437#p2437" />
			<content type="html"><![CDATA[<p>The problem is that coroutines (Properties: 26) stop when GameObject is disabled.<br /><a href="http://answers.unity3d.com/questions/34169/does-deactivating-a-gameobject-automatically-stop.html">http://answers.unity3d.com/questions/34 … -stop.html</a></p><p>What&#039;s happening:<br />1. You create a markers.<br />2. In the start invoked coroutine, which is waiting for one frame.<br />3. You group markers, and this disables markers GameObjects, and coroutines do not continue.</p><p>The solution is quite simple: you need to change the logic of Properties script.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-06-01T15:33:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2437#p2437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Initially clustered markers don't have custom image?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2436#p2436" />
			<content type="html"><![CDATA[<p>Hey Alex,</p><p>I&#039;ve just sent you a .unitypackage containing a slimmed down version of our scene and scripts.<br />I&#039;ve sent it to support@infinity-code.com through wetransfer so I hope it arrives well!</p>]]></content>
			<author>
				<name><![CDATA[alexandra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=328</uri>
			</author>
			<updated>2017-06-01T13:08:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2436#p2436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Initially clustered markers don't have custom image?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2435#p2435" />
			<content type="html"><![CDATA[<p>I checked your code and it looks well.<br />It is very difficult to say why this works wrong in the first case, and it works well in the second case.</p><p>If you make a some scene that demonstrates this behavior and sends it to us by email (support@infinity-code.com), I&#039;ll check it and tell you exactly what&#039;s wrong.</p><p>P.S. Please do not use private messages on the forum. I do not get notifications about new private messages, and the answer can be quite late. If you need private support, please use email.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-05-31T21:42:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2435#p2435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Initially clustered markers don't have custom image?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2430#p2430" />
			<content type="html"><![CDATA[<p>Hey Alex, I&#039;ve send you the script that we use!</p>]]></content>
			<author>
				<name><![CDATA[alexandra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=328</uri>
			</author>
			<updated>2017-05-31T10:55:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2430#p2430</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Initially clustered markers don't have custom image?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2429#p2429" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Which clustering script are you using?<br />At various times I published at least four such scripts.<br />Or you use your own script? If so please send it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-05-31T00:39:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2429#p2429</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Initially clustered markers don't have custom image?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2428#p2428" />
			<content type="html"><![CDATA[<p>Hello Alex,</p><p>We&#039;re running into an issue with our code which we cannot figure out. We create markers which have a script attached, which on start, sets the marker&#039;s image using <br /></p><div class="codebox"><pre><code>GetComponent&lt;SpriteRenderer&gt;().sprite = Sprite.Create(texture, rect, vector2);</code></pre></div><p>This normally works fine and all markers have a correct image.</p><p>When markers start out clustered, they do not have the correct image when declustering/zooming in.<br />For markers that do not start out clustered, clustering and declustering them works correctly and they still have their image afterwards.</p><p>So:<br />Case 1 Startup: Clustermarker(2) -&gt; zooming in -&gt; two individual markers without image<br />Case 2 Startup: two individual markers (with image) -&gt; zooming out -&gt; Clustermarker(2) -&gt; zooming in -&gt; two individual markers (with image)</p><p>This is the process of application start:<br />1. Get data<br />2. Create markers with data<br />3. Marker script&#039;s on Start is called and sets image<br />4. Group3DMarkers is called</p>]]></content>
			<author>
				<name><![CDATA[alexandra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=328</uri>
			</author>
			<updated>2017-05-30T10:59:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2428#p2428</id>
		</entry>
</feed>
