<?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 — Offline resources in StreamingAssets folder]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1019</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1019&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Offline resources in StreamingAssets folder.]]></description>
		<lastBuildDate>Tue, 29 Jan 2019 14:54:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Offline resources in StreamingAssets folder]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4525#p4525</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Opixido)]]></author>
			<pubDate>Tue, 29 Jan 2019 14:54:25 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4525#p4525</guid>
		</item>
		<item>
			<title><![CDATA[Re: Offline resources in StreamingAssets folder]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4521#p4521</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 28 Jan 2019 19:25:39 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4521#p4521</guid>
		</item>
		<item>
			<title><![CDATA[Offline resources in StreamingAssets folder]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4517#p4517</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Opixido)]]></author>
			<pubDate>Mon, 28 Jan 2019 11:59:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4517#p4517</guid>
		</item>
	</channel>
</rss>
