<?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 — Broken script after last update]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1340</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1340&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Broken script after last update.]]></description>
		<lastBuildDate>Tue, 27 Aug 2019 15:42:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Broken script after last update]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5460#p5460</link>
			<description><![CDATA[<p>Hello.</p><p>Thank you for the bug report.<br />This is a cache error.<br />The problem is fixed and you have two ways:<br />1. Wait for the new version (most likely next week).<br />2. Write an email (support@infinity-code.com) and I will send you a modified script.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 27 Aug 2019 15:42:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5460#p5460</guid>
		</item>
		<item>
			<title><![CDATA[Broken script after last update]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5459#p5459</link>
			<description><![CDATA[<p>Hi<br />I updated Online maps this morning (that haven&#039;t been done since more than a month) and i got an error spamming my console (and making the app really slow) on a custom script, which purpose is to check the downloaded tiles.</p><p>Here is the script : <br /></p><div class="codebox"><pre><code>using UnityEngine;

public class CheckArcGISTile : MonoBehaviour
{
    private Color emptyColor = new Color32(204, 204, 204, 255);

    private void Start()
    {
        OnlineMapsTileManager.OnTileLoaded += OnTileLoaded;
    }

    private void OnTileLoaded(OnlineMapsTile tile)
    {
        Texture2D texture = tile.texture;
        Color c1 = texture.GetPixel(1, 1);        // new error is here
        Color c2 = texture.GetPixel(254, 254);

        if (c1 == emptyColor &amp;&amp; c2 == emptyColor) tile.status = OnlineMapsTileStatus.error;
    }
}</code></pre></div><p>Error is on line 15. When disabling this script, the app doesn&#039;t get slowed.<br />error is &quot;null reference exeption: object not set to an instance of an object ...&quot;</p><p>So i guess things have change since july about the tile loading, what is the new way of doing this correctly ?</p><p>Thanks for your help<br />Thibault</p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Tue, 27 Aug 2019 15:27:18 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5459#p5459</guid>
		</item>
	</channel>
</rss>
