<?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 — Rectangular (widescreen) Tileset map instead of square]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=200</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=200&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Rectangular (widescreen) Tileset map instead of square.]]></description>
		<lastBuildDate>Tue, 26 Jul 2016 08:49:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Rectangular (widescreen) Tileset map instead of square]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=933#p933</link>
			<description><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>If you just need to set the size, yes, this is the correct way.</p><p>If you want to dynamically change the size of this is not enough.<br />We have added a new method for the correct resize of tileset.<br />Please update Online Maps.</p><p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class ResizeMapExample:MonoBehaviour
{
    private int[] widths = {1024, 2048};
    private int height = 1024;
    private int wIndex = 0;

    private void OnGUI()
    {
        if (GUI.Button(new Rect(5, 5, 100, 30), &quot;Resize&quot;))
        {
            wIndex = 1 - wIndex;
            OnlineMapsTileSetControl.instance.Resize(widths[wIndex], height);
        }
    }
}</code></pre></div></blockquote></div><p>Awesome <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> thank you!</p>]]></description>
			<author><![CDATA[null@example.com (StephenAllen)]]></author>
			<pubDate>Tue, 26 Jul 2016 08:49:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=933#p933</guid>
		</item>
		<item>
			<title><![CDATA[Re: Rectangular (widescreen) Tileset map instead of square]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=920#p920</link>
			<description><![CDATA[<p>Hello.</p><p>If you just need to set the size, yes, this is the correct way.</p><p>If you want to dynamically change the size of this is not enough.<br />We have added a new method for the correct resize of tileset.<br />Please update Online Maps.</p><p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class ResizeMapExample:MonoBehaviour
{
    private int[] widths = {1024, 2048};
    private int height = 1024;
    private int wIndex = 0;

    private void OnGUI()
    {
        if (GUI.Button(new Rect(5, 5, 100, 30), &quot;Resize&quot;))
        {
            wIndex = 1 - wIndex;
            OnlineMapsTileSetControl.instance.Resize(widths[wIndex], height);
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 25 Jul 2016 19:53:33 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=920#p920</guid>
		</item>
		<item>
			<title><![CDATA[Rectangular (widescreen) Tileset map instead of square]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=906#p906</link>
			<description><![CDATA[<p>Edit : Found solution, it was as simple as changing the Tileset Width (pixels) and Size (in scene) X&nbsp; options on the &quot;OnlineMaps.cs&quot; script.&nbsp; I think i was over-thinking it lol</p>]]></description>
			<author><![CDATA[null@example.com (StephenAllen)]]></author>
			<pubDate>Sun, 24 Jul 2016 15:48:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=906#p906</guid>
		</item>
	</channel>
</rss>
