<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Unity UI prevents scrolling the camera]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1753&amp;type=atom" />
	<updated>2021-04-12T14:13:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1753</id>
		<entry>
			<title type="html"><![CDATA[Re: Unity UI prevents scrolling the camera]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7370#p7370" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Or you can just use Online Maps / Troubleshooting / Not Interact Under GUI - OFF.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-04-12T14:13:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7370#p7370</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unity UI prevents scrolling the camera]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7368#p7368" />
			<content type="html"><![CDATA[<p>Hello,</p><p>Edit: Already found a solution!</p><p>Old Question:<br />In my project I&#039;ve got some Unity UI elements like UI buttons. When starting a touch on such a button the map does not scroll. I know this is probably the required behaviour for many projects, but in my project I would actually like the camera to move regardless of whether the touch started on a button or on the map. Do you have any quick idea on how to make the map scroll but at the same time allow the button to work on click?</p><p>Solution:<br />I implemented the IPointerDownHandler interface on the UI elements where I want the map to scroll and in the IPointerDownHandler method I invoked:<br />OnlineMapsControlBase.instance.isMapDrag = true;<br />That did the trick!</p><p>Regards,</p><p>Jürgen</p>]]></content>
			<author>
				<name><![CDATA[negruj0w1tsch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1428</uri>
			</author>
			<updated>2021-04-12T09:45:11Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7368#p7368</id>
		</entry>
</feed>
