<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Tilesets on UI - no interactivity when built for windows]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1679&amp;type=atom" />
	<updated>2021-01-26T09:08:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1679</id>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7109#p7109" />
			<content type="html"><![CDATA[<p>Tileset is not UI element and cannot be used inside Canvas.<br />This can cause any problems, for example, as in your case.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-01-26T09:08:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7109#p7109</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7108#p7108" />
			<content type="html"><![CDATA[<p>Problem apparently found and fixed. </p><p>The observed behavior was actually not due to Mac vs Win, but rather to changes in Display resolution. It happened similarly in the editor when testing different display simulation (which I should have tested earlier).</p><p>The origin of the behaviour was that I had the map within a prefab, and this led it to be put in a UI hierarchy, which led it (map? camera? texture?) to be influenced by different Display resolutions. </p><p>Changing my prefab instantiation strategy to have the map object created outside of the UI hierarchy seems to have fixed the problem.</p>]]></content>
			<author>
				<name><![CDATA[emmanuel.g.blanchard]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=109</uri>
			</author>
			<updated>2021-01-25T20:39:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7108#p7108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7072#p7072" />
			<content type="html"><![CDATA[<p>if I put 500 in the camera orbit of the prefab, the value in the instance of the mac version is ~1000. I tried another value : 700... and the value in the instance was ~1400<br />There s a&nbsp; x2 somewhere...<br />i don&#039;t see how it could come from my scripts or prefab settings. As said, it s the same project synchronized on 2&nbsp; computers. and settings are the same.</p><p>Edit: So if someone else encounters the same issue, i have a dirty-yet-easy fix</p><p>#if UNITY_STANDALONE_OSX<br />OnlineMapsCameraOrbit.instance.distance /=2;<br />#endif</p><p>Then the visualization is the same on mac and pc.</p><p>Edit2:This indeed must come from something in my project. I created an empty project with just the map, and synchronized it between OS. It doesn&#039;t reproduce the visualization issue. For now i have my fix. I will investigate when i have time and if it s not too silly, i will keep you posted. Sorry for the trouble.</p>]]></content>
			<author>
				<name><![CDATA[emmanuel.g.blanchard]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=109</uri>
			</author>
			<updated>2021-01-18T00:12:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7072#p7072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7070#p7070" />
			<content type="html"><![CDATA[<p>Interesting, and very strange.<br />I&#039;ve never seen anything like it.<br />On Mac: try setting Camera Orbit / Distance - 500, and then set it back to 1000.<br />Perhaps this is some kind of script serialization problem.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-01-17T22:12:22Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7070#p7070</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7067#p7067" />
			<content type="html"><![CDATA[<p>Both versions are synchronized with collaborate. So codes, prefabs and their settings are exactly the same.</p><p>Yet you are sorta right.<br />- At runtime, the map camera Y location on Mac is +1000 (~2000 instead of ~1000)<br />In Mac editor, I can fix the visualization at runtime, by putting the Y value to 1000 but in order to modify it, i need to disable the Camera orbit script. I guess the issue is there. As said before, the setting of this component is exactly the same in both mac and pc (I didn&#039;t change anything : average center, 1000, 80, rot to 0 0, speed to 1 1)</p><p>I can put a script somewhere to fix it but i doubt that s a normal behaviour.</p><p>Edit. The issue is definitely with camera orbit. If, at runtime, i fix the visualization with the 2 actions I said before, and I enable CameraOrbit again afterward, the visualization becomes inappropriate again.</p>]]></content>
			<author>
				<name><![CDATA[emmanuel.g.blanchard]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=109</uri>
			</author>
			<updated>2021-01-17T19:43:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7067#p7067</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7066#p7066" />
			<content type="html"><![CDATA[<p>Compare settings of components step by step.<br />Somewhere you have different values.<br />This problem could be in:<br />- Map / Transform / Scale.<br />- Map / Camera Orbit / Distance.<br />- Map / Tileset / Size In Scene.<br />- (If you are not using Camera Orbit) Camera / Transform / Position.</p><p>Besides, it could be somewhere else.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-01-17T18:36:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7066#p7066</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7065#p7065" />
			<content type="html"><![CDATA[<p>Follow up issue. </p><p>I ve built the project on Windows. Works as expected. <br />But when working on the same project for mac, the map rendering is different. <br />My setup is the following. <br />- I create a 1024x1024 renderTexture<br />- it is on a rawImage set to be squared (aspectRatioFitter with ratio of 1 and height controls width) in a 1080x1920 portrait canvas<br />- The online maps width and height are set to 512<br />- The tileset size in scene is set to 1024x1024. </p><p>This way on window, i can have a decent resolution while keeping city names big enough.<br />However on mac, the renderTexture only takes the middle 512x512 square of the RawImage&nbsp; (the issue appears in the editor as well as in build)</p><br /><p>See image : Mac on the left, Windows (expected behaviour) on the right)</p>]]></content>
			<author>
				<name><![CDATA[emmanuel.g.blanchard]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=109</uri>
			</author>
			<updated>2021-01-17T02:52:03Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7065#p7065</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7064#p7064" />
			<content type="html"><![CDATA[<p>This solved the issue. As always thanks for the quick fix.</p>]]></content>
			<author>
				<name><![CDATA[emmanuel.g.blanchard]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=109</uri>
			</author>
			<updated>2021-01-17T00:33:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7064#p7064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7061#p7061" />
			<content type="html"><![CDATA[<p>Hello.</p><p>This is a bug in the Raw Image Touch Forwarder.<br />The modified script is attached.<br />Replace this file in your project.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-01-16T11:35:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7061#p7061</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Tilesets on UI - no interactivity when built for windows]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7060#p7060" />
			<content type="html"><![CDATA[<p>Hello, I found the video you published for properly using tileset maps on UI. <br />It works really smoothly when using it with play from the Unity Editor. But when i tried to built for windows today (both 32 and 64b), there is no more interactivity. No ability to move the map, to zoom, to click on markers. </p><p>I tried redo a very basic example from step 1<br />- creating a new project, <br />- following strictly the video and doing nothing more in my scene. Structur<br />The result was the same. It works well when played from the editor but no interactivity on windows.</p><p>Any idea?</p><p>PS: Unity version 2020.2.1f1 and OnlineMaps 3.7.8</p>]]></content>
			<author>
				<name><![CDATA[emmanuel.g.blanchard]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=109</uri>
			</author>
			<updated>2021-01-15T21:14:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7060#p7060</id>
		</entry>
</feed>
