<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Move camera to center of map]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1120&amp;type=atom" />
	<updated>2019-05-07T19:18:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1120</id>
		<entry>
			<title type="html"><![CDATA[Re: Move camera to center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4891#p4891" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-05-07T19:18:11Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4891#p4891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Move camera to center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4888#p4888" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2019-05-07T16:00:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4888#p4888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Move camera to center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4816#p4816" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-04-25T19:50:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4816#p4816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Move camera to center of map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4815#p4815" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2019-04-25T19:14:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4815#p4815</id>
		</entry>
</feed>
