<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Cached Tiles dont load properly]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1485&amp;type=atom" />
	<updated>2020-04-06T09:35:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1485</id>
		<entry>
			<title type="html"><![CDATA[Re: Cached Tiles dont load properly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6133#p6133" />
			<content type="html"><![CDATA[<p>StreamingAssets and Resources are different folders that have different purposes.<br /><a href="https://docs.unity3d.com/Manual/SpecialFolders.html">https://docs.unity3d.com/Manual/SpecialFolders.html</a><br />Online Maps has a built-in way for loading tiles from Resources, but does not have from StreamingAssets.</p><p>You can manually load tiles from StreamingAssets by intercepting a request using OnlineMapsTileManager.OnStartDownloadTile.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsTileManager.html#abea91ee5ab608b4a930f8b3a0078248d">http://infinity-code.com/doxygen/online … 3a0078248d</a><br /><a href="https://docs.unity3d.com/Manual/StreamingAssets.html">https://docs.unity3d.com/Manual/StreamingAssets.html</a></p><p>P.S. I think the ability to load tiles from StreamingAssets will be useful and we will add this feature in Online Maps v3.8.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-04-06T09:35:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6133#p6133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cached Tiles dont load properly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6131#p6131" />
			<content type="html"><![CDATA[<p>It doesn&#039;t load any tiles from the given folder, whether they been there since start or not.<br />I managed to load tiles and save them to the given folder; settings been Resources and Online as u mentioned. Works. <br />Then i restart with settings Resources only with the intention to see the preloaded tiles, but they dont show up.</p><p>In other words: i put some tiles to the given folder before starting the game, then start it with offline settings, map doesnt show up. I checked all folder-paths btw.</p>]]></content>
			<author>
				<name><![CDATA[Sinthien]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=652</uri>
			</author>
			<updated>2020-04-05T12:10:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6131#p6131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cached Tiles dont load properly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6130#p6130" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Interception of downloading tiles, which is used in the script that you mention, will not work with Source - Resources, because in this mode the map searches for tiles only in the Resources folder, and you cannot put something in this folder after build.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-04-05T11:27:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6130#p6130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Cached Tiles dont load properly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6129#p6129" />
			<content type="html"><![CDATA[<p>Hello again,<br />i used your wonderful script <a href="https://forum.infinity-code.com/viewtopic.php?id=1052">https://forum.infinity-code.com/viewtopic.php?id=1052</a> and loaded some tiles to the cache.<br />If i restart with source set to resources only some tiles get loaded if i zoom out. On zoom in nothing get loaded and even the previously shown tiles cease to show.<br />Did i mess somethin up ?</p><p>Folder structure is &quot;Assets/StreamingAssets/Tile Cache/&quot;.</p><p>If i use &quot;Assets/StreamingAssets/Tile Cache/{zoom}/{x}/{y}&quot; then nothing will be shown.</p>]]></content>
			<author>
				<name><![CDATA[Sinthien]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=652</uri>
			</author>
			<updated>2020-04-05T11:19:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6129#p6129</id>
		</entry>
</feed>
