<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — SOLVED - Android not showing map and touch question]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1503&amp;type=atom" />
	<updated>2020-04-29T03:19:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1503</id>
		<entry>
			<title type="html"><![CDATA[Re: SOLVED - Android not showing map and touch question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6193#p6193" />
			<content type="html"><![CDATA[<p>Thanks a lot for the general advice. I really appreciate it.<br />I think this will help me a lot to get me started.</p>]]></content>
			<author>
				<name><![CDATA[KevinH]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1284</uri>
			</author>
			<updated>2020-04-29T03:19:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6193#p6193</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SOLVED - Android not showing map and touch question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6191#p6191" />
			<content type="html"><![CDATA[<p>I&#039;m glad you found the map.<br />But, unfortunately, I do not know what and how you are doing, and it is difficult for me to give advice here.</p><p>I can give general advice:<br />1. Create a Tileset map instead of a SpriteRenderer.<br />Tileset has much better performance, uses less memory, and has many exclusive features.<br />2. Use Online Maps Camera Orbit + Tileset, and the map will always be in the center of the screen.<br />3. Use the Adjust to Screen component to adjust the size of the map to fit the screen.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-04-28T22:03:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6191#p6191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SOLVED - Android not showing map and touch question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6190#p6190" />
			<content type="html"><![CDATA[<p>Update:</p><p>I just realised that it DOES work, but only in landscape mode and I&#039;ve been viewing the project in portrait mode this whole time.<br />So portrait mode still doesn&#039;t display anything (except the png I randomly put there).</p><p>Can I enable portrait mode somehow? <br />The Mapbox map feels really sluggish, though. Are there settings in your plugin that can optimise performance or is this an external issue?</p>]]></content>
			<author>
				<name><![CDATA[KevinH]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1284</uri>
			</author>
			<updated>2020-04-28T21:22:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6190#p6190</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SOLVED - Android not showing map and touch question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6189#p6189" />
			<content type="html"><![CDATA[<p>EDIT: See my newer response, it&#039;s beginning to work somewhat.</p><p>Thanks a lot for the fast reply! </p><p>1. Sadly it did not help.<br />The scene seems to be added correctly already since I additionally put a little png sprite on top of the map to see if my smartphone displays anything at all. The png does show up, but underneath it&#039;s still blue (which I guess is the empty background colour in a unity project).</p><p>Switched to Mapbox now to see if it makes a difference, but again, it works on my pc but it doesn&#039;t show up on my android phone.<br />Random guesses: It does display somewhere but out of bounds maybe? The camera is right on top of it though...<br />Could permissions on android play a role?<br />Should I select a plugin e.g. Adjust to Screen?</p><p>2. Ah, that&#039;s great to hear!</p><p>I hope we&#039;ll find a solution for this. Can&#039;t wait to play around more with this plugin. The possibilities seem really amazing.</p>]]></content>
			<author>
				<name><![CDATA[KevinH]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1284</uri>
			</author>
			<updated>2020-04-28T21:06:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6189#p6189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SOLVED - Android not showing map and touch question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6188#p6188" />
			<content type="html"><![CDATA[<p>Hello.</p><p>1. Most likely, you just did not add the scene with the map to the build.<br />How to do it:<br />- Open the scene with the map.<br />- File / Build Settings.<br />- Remove all the scenes that are added to the build.<br />- Add Open Scenes.</p><p>2. Online Maps will automatically detect that the target platform is Android, and will use touches instead of the mouse.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-04-28T20:17:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6188#p6188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SOLVED - Android not showing map and touch question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6187#p6187" />
			<content type="html"><![CDATA[<p>Hi there,</p><p>I&#039;m pretty new to unity so maybe I&#039;m doing something fundamentally wrong.<br />I have some questions concerning android.</p><p>I added a 2D map with SpriteRendererControl via the wizard and chose Google Maps as my provider.<br />Other than that I didn&#039;t select anything in the wizard.</p><p>When I test it via the play button the map works on my pc and I can control it with the mouse.<br />When I build and run it as an android app, it does start up the app but it only displays a blue coloured screen and not the map.</p><p>So my first question is: Any idea what I&#039;m doing wrong? </p><p>My other question is: Are the android touch controls for the map automatically enabled or is only mouse control enabled? Where can I see these settings?</p><p>I&#039;d really appreciate your help!<br />Thanks in Advance,</p><p>Kevin</p>]]></content>
			<author>
				<name><![CDATA[KevinH]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1284</uri>
			</author>
			<updated>2020-04-28T19:50:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6187#p6187</id>
		</entry>
</feed>
