<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Issues with version 3.x - Version 2.x was better?....]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1121&amp;type=atom" />
	<updated>2019-04-27T12:15:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1121</id>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4829#p4829" />
			<content type="html"><![CDATA[<p>Great!<br />Many thanks</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-04-27T12:15:14Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4829#p4829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4827#p4827" />
			<content type="html"><![CDATA[<p>Thanks for the project.</p><p>The problem has been fixed.<br />The new version will be available through the built-in update system on Monday.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-04-27T11:40:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4827#p4827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4825#p4825" />
			<content type="html"><![CDATA[<p>Well.. as you suggested using OnlineMapsControlBaseDynamicMesh.OnMeshUpdated&nbsp; seem to do the job (no more shake),<br />But I&#039;d curious to know what&#039;s going on.</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-04-27T01:30:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4825#p4825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4822#p4822" />
			<content type="html"><![CDATA[<p>I&#039;ve just sent you the project with Wetransfer.<br />You can open the scene file &quot;TestScene with issue&quot;<br />It&#039;s just the very basic scene with the map and one Gameobjects (named &quot;Placeholder&quot;).<br />The position of the Placeholder is updated through the previous script.<br />As you will see as you pan the map the position of the Placeholder shake, you can see it better if you zoom in the map.<br />This issue didn&#039;t happen with the previous release</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-04-26T19:36:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4822#p4822</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4821#p4821" />
			<content type="html"><![CDATA[<p>Thank-you so much! The project is very simple, just your default scene with a Gameobject and a script attached.</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-04-26T19:12:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4821#p4821</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4820#p4820" />
			<content type="html"><![CDATA[<p>Send your project to us (support@infinity-code.com). I&#039;ll check what&#039;s wrong.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-04-26T18:55:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4820#p4820</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4819#p4819" />
			<content type="html"><![CDATA[<p>Thank-you for your reply,</p><p>1 - maybe it&#039;s my network.</p><p>2 - I&#039;ve did a very simple test with the provided scene &quot;Tileset (Recommended for most cases)&quot;, just with a new Gameobject and the previous script attached to it, and the issue is still there.<br />This issue (shaking) does not happen with the same simple scene (only the Map and a Gameobject) on version 2.x</p><p>3 - Sorry, I didn&#039;t read all the documentation, and since it was working on 2.x I had idea that it was a 3.x problem</p><p>Please could you make a quick test for the issue n.2 ?<br />Many thanks!</p><p>3 -</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-04-26T18:52:31Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4819#p4819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4818#p4818" />
			<content type="html"><![CDATA[<p>Hello.</p><p>1. Theoretically, v3 should be faster.</p><p>2. It is very difficult to say what is wrong.<br />Here need to test the whole project.<br />Try using OnlineMapsControlBaseDynamicMesh.OnMeshUpdated instead of OnChangeZoom and OnChangePosition.</p><p>3. In any version of Online Maps you cannot access map scripts from OnEnable or Awake.<br />It has always worked this way, and this is written in the documentation.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-04-26T18:38:12Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4818#p4818</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Issues with version 3.x - Version 2.x was better?....]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4817#p4817" />
			<content type="html"><![CDATA[<p>Hello, the title is ironic, I&#039;m pretty sure that the new version is better than the previous one,<br />but I&#039;ve just upgraded OnlineMaps from 2.x to 3.x on my old project, and I have some problems:</p><p>1) The map seem to load slower than before. Maybe it&#039;s just a my impression but I&#039;ve both projects open, and at Start the one with OnlineMaps 2.x it&#039;s quicker (a couple of seconds) to load and update the map on zoom...</p><p>2) I&#039;ve placed some Gameobjects on the map, relative to their longitude and latitude: I was used to update their positions (when the map is zoomed or panned) with this very simple code:</p><p>public Vector2 longitudeLatitude;</p><p>&nbsp; &nbsp; private void OnEnable()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.OnChangeZoom += UpdatePosition;<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.OnChangePosition += UpdatePosition;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; private void Start()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; UpdatePosition();<br />&nbsp; &nbsp; }</p><br /><p>&nbsp; &nbsp; void UpdatePosition()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (longitudeLatitude != Vector2.zero)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transform.position = OnlineMapsTileSetControl.instance.GetWorldPosition(longitudeLatitude);<br />&nbsp; &nbsp; }</p><p>The problem is that the new position is not accurate. When I pan the map my Gameobjects &quot;shake&quot; a little around the correct position. With OnlineMaps 2.x the new position was perfect and everyhing was very smooth.</p><p>3) The Actions &quot;OnChangeZoom&quot; and &quot;OnChangePosition&quot; are not called on &quot;OnEnable&quot; (NullReferenceException: Object reference not set to an instance of an object)<br />I have to put them on Start, but it&#039;s quite an issue for me.</p><p>Can you help me on all this?<br />Thanks</p>]]></content>
			<author>
				<name><![CDATA[danielesuppo]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=956</uri>
			</author>
			<updated>2019-04-26T17:39:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4817#p4817</id>
		</entry>
</feed>
