<?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 — Move camera to center of map]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1120</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1120&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Move camera to center of map.]]></description>
		<lastBuildDate>Tue, 07 May 2019 19:18:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Move camera to center of map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4891#p4891</link>
			<description><![CDATA[<p>Just checked lock pan and lock tilt and it works correctly.<br />In addition, you can set the speed - (0; 0).</p><p>Theoretically, this might not work if you have two instances of the Camera Orbit in the scene.<br />Please make sure that you have only one instance of this script in the scene.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 07 May 2019 19:18:11 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4891#p4891</guid>
		</item>
		<item>
			<title><![CDATA[Re: Move camera to center of map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4888#p4888</link>
			<description><![CDATA[<p>Thanks this works, but I only want the camera to be positioned in the center of the map (which it now is).&nbsp; I don&#039;t want to allow the user to rotate the map.&nbsp; I see the lock tilt and lock pan, I set rotation to 0, but user can still rotate.&nbsp; Is there a way to lock rotation, or should I just disable the camera orbit after it move the camera into position?</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Tue, 07 May 2019 16:00:09 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4888#p4888</guid>
		</item>
		<item>
			<title><![CDATA[Re: Move camera to center of map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4816#p4816</link>
			<description><![CDATA[<p>Hello.</p><p>In Online Maps v3, this feature is moved into a separate component - Online Maps Camera Orbit.<br />Just add this component to the map.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 25 Apr 2019 19:50:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4816#p4816</guid>
		</item>
		<item>
			<title><![CDATA[Move camera to center of map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4815#p4815</link>
			<description><![CDATA[<p>I had to upgrade to Unity 2018 from 5.6 as well as your online maps version (3.0.4.1).</p><p>So I&#039;ve worked out all the kinks except one...</p><p>In my app I loaded a tileset prefab and allowed camera control = true (in code) which would position the camera over the center of the map.&nbsp; Used the adjust to screen size utility script.</p><p>Now when my prefab loads, the camera is not moving into position at the center of the map.&nbsp; When testing in the Editor, I can click the &quot;Move camera to center of Map&quot; button, which works perfectly.&nbsp; However if I copy that bit of code from online maps into my &quot;Init&quot; code, it doesn&#039;t work.</p><p>What am I doing wrong?&nbsp; I don&#039;t want the user to be able to rotate the map, only position and zoom.</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Thu, 25 Apr 2019 19:14:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4815#p4815</guid>
		</item>
	</channel>
</rss>
