<?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 — Target - Texture: Invalid texture format (Unity 5.5)]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=401</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=401&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Target - Texture: Invalid texture format (Unity 5.5).]]></description>
		<lastBuildDate>Thu, 02 Feb 2017 11:19:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Target - Texture: Invalid texture format (Unity 5.5)]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1760#p1760</link>
			<description><![CDATA[<p>Hello.</p><p>Thank you for bug report.</p><p>Actually, we already know about this problem and already fix it.<br />The new (fixed) version will be available soon through the built-in update system.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 02 Feb 2017 11:19:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1760#p1760</guid>
		</item>
		<item>
			<title><![CDATA[Target - Texture: Invalid texture format (Unity 5.5)]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1759#p1759</link>
			<description><![CDATA[<p>Unity Version: 5.5.0f3<br />Platform: PC</p><p>When attempting to use a map with Target set to &quot;Texture&quot;, I am receiving the following errors:</p><div class="codebox"><pre><code>Invalid texture format
UnityEngine.Texture2D:SetPixels32(Color32[])
OnlineMaps:CheckBufferComplete() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:860)
OnlineMaps:LateUpdate() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1101)</code></pre></div><div class="codebox"><pre><code>Unsupported texture format - needs to be ARGB32, RGBA32, RGB24, Alpha8 or one of float formats
UnityEngine.Texture2D:SetPixels(Color[])
OnlineMaps:OnDestroy() (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1142)</code></pre></div><p>I ran a simple scene where I used the Map Wizard to create the Plane with the texture and used the Google Maps provider.</p><p>Some debugging shows that the texture, on which SetPixels32 is called, has a format of DXT5. This appears to be due to the fact that the TextureImporter in Unity 5.5 defaults to having textureCompression set to &quot;Compression&quot; and the textureFormat field looks to be deprecated. According to the documentation (<a href="https://docs.unity3d.com/ScriptReference/TextureImporterCompression.html">https://docs.unity3d.com/ScriptReferenc … ssion.html</a>), it looks like using &quot;Compression&quot; for textureCompression would result in a texture format of DXT5 (depending on the platform).</p><p>I do not have this issue in Unity 5.3.5f1 and my current work around for Unity 5.5.0f3 is to set the textureCompression on the texture importer to &quot;Uncompressed&quot;. Making this change appears to be working for now but that has not be thoroughly tested.</p><p>I am not very familiar with Unity (or C# for that matter) so hopefully that all makes sense. Thanks for developing and maintaining this asset.</p>]]></description>
			<author><![CDATA[null@example.com (jdh5259)]]></author>
			<pubDate>Wed, 01 Feb 2017 21:04:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1759#p1759</guid>
		</item>
	</channel>
</rss>
