<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Destroying assets is not permitted ...]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=390&amp;type=atom" />
	<updated>2017-05-15T20:28:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=390</id>
		<entry>
			<title type="html"><![CDATA[Re: Destroying assets is not permitted ...]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2359#p2359" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Please attach a stack trace of this error.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-05-15T20:28:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2359#p2359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Destroying assets is not permitted ...]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2355#p2355" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[rmx]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=311</uri>
			</author>
			<updated>2017-05-15T11:41:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2355#p2355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Destroying assets is not permitted ...]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1697#p1697" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-20T13:17:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1697#p1697</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Destroying assets is not permitted ...]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1693#p1693" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2017-01-19T09:33:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1693#p1693</id>
		</entry>
</feed>
