<?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 — Destroying assets is not permitted ...]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=390</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=390&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Destroying assets is not permitted ....]]></description>
		<lastBuildDate>Mon, 15 May 2017 20:28:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Destroying assets is not permitted ...]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2359#p2359</link>
			<description><![CDATA[<p>Hello.</p><p>Please attach a stack trace of this error.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 15 May 2017 20:28:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2359#p2359</guid>
		</item>
		<item>
			<title><![CDATA[Re: Destroying assets is not permitted ...]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2355#p2355</link>
			<description><![CDATA[<p>Seem to be having a similar issue, not resolved by the change to destroy as suggested.</p><p>Also having trouble loading tile overlays (see attached image, only 3 tiles are loaded). Any ideas?</p><p>Using version 2.5.9.1</p><p><span class="postimg"><img src="http://i.imgur.com/88wIxFX.jpg" alt="screenshot" /></span></p>]]></description>
			<author><![CDATA[null@example.com (rmx)]]></author>
			<pubDate>Mon, 15 May 2017 11:41:27 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2355#p2355</guid>
		</item>
		<item>
			<title><![CDATA[Re: Destroying assets is not permitted ...]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1697#p1697</link>
			<description><![CDATA[<p>Hello.</p><p>This happens when you (map, anyone) trying to destroy the object that is loaded (for example, from the Resources) without Instantiate.<br />I checked Online Maps and was unable to reproduce the problem.<br />Perhaps your scripts loads tile.texture?!</p><p>How to fix it:<br />Change in «OnlineMapsUtils.DestroyImmediate»<br />UnityEngine.Object.DestroyImmediate (obj);<br />to<br />UnityEngine.Object.Destroy (obj);</p><p>In the next version we will also add this fix.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 20 Jan 2017 13:17:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1697#p1697</guid>
		</item>
		<item>
			<title><![CDATA[Destroying assets is not permitted ...]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1693#p1693</link>
			<description><![CDATA[<p>Hi Alex,</p><p>I have recently come across a problem with tileset maps in Unity 5.5 - Windows 10. <br />I get this error in the console - <br /></p><div class="codebox"><pre><code>Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
UnityEngine.Object:DestroyImmediate(Object)
OnlineMapsUtils:DestroyImmediate(Object) (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsUtils.cs:279)
OnlineMapsTile:Destroy() (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsTile.cs:425)
OnlineMapsTile:UnloadUnusedTiles() (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsTile.cs:661)
OnlineMaps:CheckBufferComplete() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:852)
OnlineMaps:LateUpdate() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1101)</code></pre></div><p>Any idea whats going on here?</p><p>I upgraded my OnlineMaps asset to the latest from the asset store by the way.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (nigel.moore)]]></author>
			<pubDate>Thu, 19 Jan 2017 09:33:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1693#p1693</guid>
		</item>
	</channel>
</rss>
