<?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 — Unity UI prevents scrolling the camera]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1753</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1753&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Unity UI prevents scrolling the camera.]]></description>
		<lastBuildDate>Mon, 12 Apr 2021 14:13:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Unity UI prevents scrolling the camera]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7370#p7370</link>
			<description><![CDATA[<p>Hello.</p><p>Or you can just use Online Maps / Troubleshooting / Not Interact Under GUI - OFF.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 12 Apr 2021 14:13:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7370#p7370</guid>
		</item>
		<item>
			<title><![CDATA[Unity UI prevents scrolling the camera]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7368#p7368</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (negruj0w1tsch)]]></author>
			<pubDate>Mon, 12 Apr 2021 09:45:11 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7368#p7368</guid>
		</item>
	</channel>
</rss>
