<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Display the map in Tileset mode in a specific area of the screen]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2298&amp;type=atom" />
	<updated>2024-09-05T11:40:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2298</id>
		<entry>
			<title type="html"><![CDATA[Re: Display the map in Tileset mode in a specific area of the screen]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9640#p9640" />
			<content type="html"><![CDATA[<p>Thank you for your response.</p><p>I see that it works with the pivot is (0.5, 0.5), but it&#039;s not ideal, as it should work regardless of the pivot settings. Please, can you see my bug fix proposal above?</p><p>Thank you.</p>]]></content>
			<author>
				<name><![CDATA[sviudes]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=4058</uri>
			</author>
			<updated>2024-09-05T11:40:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9640#p9640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Display the map in Tileset mode in a specific area of the screen]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9614#p9614" />
			<content type="html"><![CDATA[<p>Hi.</p><p>Please have a look at Tileset on UI example scene.<br />It is exactly what you are looking for.<br />You can compare the settings in this scene and your scene to find out what you have a problem with.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-08-14T19:48:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9614#p9614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Display the map in Tileset mode in a specific area of the screen]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9611#p9611" />
			<content type="html"><![CDATA[<p>I finally solved it by using a RawImage and a RenderTexture, as described in the manual (pdf). The only issue was that the OnlineMapsRawImageTouchForwarder component wasn’t working correctly: it only detected the mouse in the top right corner and didn’t zoom to where the cursor was pointing.</p><p>After some investigation and testing, I found that the problem only occurred when the RawImage pivot was not set to (0.5, 0.5). Upon reviewing the code, I identified the issue in line 224 of the OnlineMapsRawImageTouchForwarder, in the ProcessTouch method. I replaced localPosition += sizeDelta / 2.0f; with localPosition += sizeDelta * image.rectTransform.pivot;, and now it works correctly regardless of the pivot.</p><p>Could you please review if this solution is valid and consider incorporating the fix in the next release?</p><p>Thank you very much.</p>]]></content>
			<author>
				<name><![CDATA[sviudes]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=4058</uri>
			</author>
			<updated>2024-08-14T17:43:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9611#p9611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Display the map in Tileset mode in a specific area of the screen]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9610#p9610" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I&#039;m using the map specifically in Tileset mode because it&#039;s fast and efficient, and it works great. However, I&#039;d like to display the map in a specific area of the screen, near a corner, with a fixed size.</p><p>Right now, I can only get it to show centered on the screen or full-screen using the &quot;Adjust To Screen&quot; plugin. How can I position it in a specific area with a defined size while keeping it in Tileset mode?</p><p>Thanks in advance for any help!</p>]]></content>
			<author>
				<name><![CDATA[sviudes]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=4058</uri>
			</author>
			<updated>2024-08-14T16:12:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9610#p9610</id>
		</entry>
</feed>
