<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Offline resources in StreamingAssets folder]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1019&amp;type=atom" />
	<updated>2019-01-29T14:54:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1019</id>
		<entry>
			<title type="html"><![CDATA[Re: Offline resources in StreamingAssets folder]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4525#p4525" />
			<content type="html"><![CDATA[<p>Hi,</p><p>This is a perfect workaround, i will use it.<br />I was thinking to use it in the drop down menu to select different location type in the editor, because i&#039;m lazy ^^&#039;</p><p>Thank you for your answer.</p><p>Best regards</p>]]></content>
			<author>
				<name><![CDATA[Opixido]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=874</uri>
			</author>
			<updated>2019-01-29T14:54:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4525#p4525</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline resources in StreamingAssets folder]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4521#p4521" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You can already use StreamingAssets.<br />Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/CustomDownloadTileExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p><p>How to load tiles from StreamingAssets (insert this into line 29 of the example):<br /></p><div class="codebox"><pre><code>string filename = Application.streamingAssetsPath + &quot;\\OnlineMapsTiles\\&quot; + tile.zoom + &quot;\\&quot; + tile.x + &quot;\\&quot; + tile.y + &quot;.png&quot;;
if (!File.Exists(filename))
{
    OnlineMaps.instance.StartDownloadTile(tile);
    return;
}

byte[] bytes = File.ReadAllBytes(filename);
tileTexture.LoadImage(bytes);
tileTexture.wrapMode = TextureWrapMode.Clamp;</code></pre></div><p>P.S. Your filename may be different.<br />I simply renamed Resources to StreamingAssets.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-01-28T19:25:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4521#p4521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Offline resources in StreamingAssets folder]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4517#p4517" />
			<content type="html"><![CDATA[<p>Hi,<br />I need to create a desktop app with offline tiles.<br />I can only use &quot;Resources&quot; folder to use it.<br />The huge amont of tiles is complicated in resources, because of Unity importing assets.<br />And i don&#039;t talk about building the app...</p><p>Any tip to change the Resources folder to the StreamingAsset folder instead ?</p><p>Best regards</p>]]></content>
			<author>
				<name><![CDATA[Opixido]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=874</uri>
			</author>
			<updated>2019-01-28T11:59:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4517#p4517</id>
		</entry>
</feed>
