<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Cannot initialize non-default texture with negative or zero width.]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2127&amp;type=atom" />
	<updated>2023-06-19T15:50:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2127</id>
		<entry>
			<title type="html"><![CDATA[Re: Cannot initialize non-default texture with negative or zero width.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9078#p9078" />
			<content type="html"><![CDATA[<p>Thanks Alex, perfect.</p>]]></content>
			<author>
				<name><![CDATA[LazzLab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=669</uri>
			</author>
			<updated>2023-06-19T15:50:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9078#p9078</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot initialize non-default texture with negative or zero width.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9067#p9067" />
			<content type="html"><![CDATA[<p>Hi.</p><p>Thanks for the bug report.<br />I will add support for Unity 2023.1 and fix this bug and all the warnings in the next version of the asset, which will be released in early July.</p><p>How do you fix this right now:<br />Open the OnlineMapsCache.cs file in your IDE or text editor, and on lines 223 and 245, change <br />new Texture2D(0, 0<br />to <br />new Texture2D(1, 1</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-06-15T10:22:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9067#p9067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Cannot initialize non-default texture with negative or zero width.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9065#p9065" />
			<content type="html"><![CDATA[<p>Hello Alex.<br />Today Unity 2023.1 was released, and I wanted to test one of my projects with OnlineMaps 3.8.3.1. I&#039;m getting the error that I&#039;m attaching below. The error also occurs in a clean and new project if I activate &quot;Use File Cache.&quot; <br />-------<br />Cannot initialize non-default texture with negative or zero width.<br />UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,bool)<br />OnlineMapsCache:LoadTile (OnlineMapsTile,byte[]) (at Assets/Infinity Code/Online maps/Scripts/Cache/OnlineMapsCache.File.cs:245)<br />OnlineMapsCache/&lt;&gt;c__DisplayClass65_1:&lt;TryLoadFromFileCache&gt;b__1 () (at Assets/Infinity Code/Online maps/Scripts/Cache/OnlineMapsCache.File.cs:336)<br />OnlineMapsThreadManager:ExecuteMainThreadActions () (at Assets/Infinity Code/Online maps/Scripts/Threading/OnlineMapsThreadManager.cs:113)<br />OnlineMaps:Update () (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1476)<br />-------<br />Thank you for your endless assistance.</p>]]></content>
			<author>
				<name><![CDATA[LazzLab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=669</uri>
			</author>
			<updated>2023-06-14T21:15:22Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9065#p9065</id>
		</entry>
</feed>
