<?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 — OnClick events to change Parameters etc]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2022</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2022&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in OnClick events to change Parameters etc.]]></description>
		<lastBuildDate>Thu, 25 Aug 2022 01:59:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: OnClick events to change Parameters etc]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8537#p8537</link>
			<description><![CDATA[<p>Thanks Alex!&nbsp; I will try this out.</p>]]></description>
			<author><![CDATA[null@example.com (jnicol)]]></author>
			<pubDate>Thu, 25 Aug 2022 01:59:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8537#p8537</guid>
		</item>
		<item>
			<title><![CDATA[Re: OnClick events to change Parameters etc]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8530#p8530</link>
			<description><![CDATA[<p>Hello.</p><p>In the URL, you need to use tokens ({x}, {y}, {zoom}) instead of values.<br />When requesting a tile, tokens will be replaced with values.</p><p>What is a tile system and how it works:<br /><a href="https://msdn.microsoft.com/en-us/library/bb259689.aspx">https://msdn.microsoft.com/en-us/library/bb259689.aspx</a><br /><a href="http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/">http://www.maptiler.org/google-maps-coo … rojection/</a></p><p>It&#039;s hard to say why your method doesn&#039;t show up.<br />Most likely this is some simple problem, for example:<br />- You have not added a component to GameObject.<br />- You added the wrong script. For example, based on the example, you created a new script with your changes, but added the original example to GameObject.<br />- You didn&#039;t save the script.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 24 Aug 2022 09:40:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8530#p8530</guid>
		</item>
		<item>
			<title><![CDATA[OnClick events to change Parameters etc]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8526#p8526</link>
			<description><![CDATA[<p>Hi Guys,<br />I am creating my first app using the excellent Online Maps asset and I have a very noob question.&nbsp; I have a simple 3D map within an AR environment and I want to use a couple of buttons in the Unity interface to learn the environment which will change the following attributes:</p><p>1. Toggle traffic on or off;<br />2. Change the map style from satelite to street map.</p><p>For these I am using the &quot;CreateCustomStylesExample&quot;script.</p><p>This script is to specifically change the map style.&nbsp; I have copied and pasted my MapBox access token and also put in the zoom level and x, y (hopefully maps to lat and long coordinates but it doesn&#039;t look right to me so that might be one error). Also in the code below I had to take out the full url to post here so I know that (link) is incorrect.</p><div class="codebox"><pre><code> public string style1 = &quot;(link)://a.tiles.mapbox.com/v4/mapbox.satellite/14/21.3069/-157.8583.png?access_token=obscured&quot;;
        public string style2 = &quot;https://a.tiles.mapbox.com/v4/mapbox.streets/14/21.3069/-157.8583.png?access_token=obscured&quot;;
        public string mapboxAccessToken;</code></pre></div><p>I also added in the following statement in the code which I was hoping would turn traffic on:</p><div class="codebox"><pre><code>       public void OnClickThing()
        {
            OnlineMaps.instance.traffic = true;
        }</code></pre></div><p>I click and drag the script to the On Click () &quot;object&quot; window for the button and the public functions do not appear.</p><p>I have also tried dragging that script onto On Click () and then put &quot;style1&quot; or &quot;style2&quot; in the MonoScript.name field.&nbsp; I do not think that is right though.&nbsp; Nothing happens when the buttons are pressed.&nbsp; </p><p>Any pointers would be very welcome!</p><p>John</p>]]></description>
			<author><![CDATA[null@example.com (jnicol)]]></author>
			<pubDate>Wed, 24 Aug 2022 01:52:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8526#p8526</guid>
		</item>
	</channel>
</rss>
