<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Set a default target position]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=979&amp;type=atom" />
	<updated>2018-12-12T09:33:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=979</id>
		<entry>
			<title type="html"><![CDATA[Re: Set a default target position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4385#p4385" />
			<content type="html"><![CDATA[<p>Ok. Thaks for your help!</p>]]></content>
			<author>
				<name><![CDATA[adri2111]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=751</uri>
			</author>
			<updated>2018-12-12T09:33:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4385#p4385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set a default target position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4371#p4371" />
			<content type="html"><![CDATA[<p>Yes, OnLocationInited is called when the first location is received.</p><p>Earlier you wrote:<br /></p><div class="quotebox"><blockquote><p>I want to store the last device position and use it when the device doesn&#039;t have gps signa</p></blockquote></div><p>So you have a location from a previous gaming session, so you can use it. <br />Just set this position of the map (OnlineMaps.SetPosition).</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-10T19:05:05Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4371#p4371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set a default target position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4368#p4368" />
			<content type="html"><![CDATA[<p>Thanks for your tip.<br />In the documentation, we can read: &quot;Important: position not available Start, because GPS is not already initialized. <br />Use OnLocationInited event, to determine the initialization of GPS.&quot;</p><p>The initialization of the GPS only happens&nbsp; when the GPS send the first Position, that is correct?<br />So I can not setup&nbsp; the position without GPS active. Is another way to set up the position when the GPS not is running?</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[adri2111]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=751</uri>
			</author>
			<updated>2018-12-10T09:50:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4368#p4368</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set a default target position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4361#p4361" />
			<content type="html"><![CDATA[<p>Subscribe to OnlineMapsLocationServiceBase.OnLocationChanged, and save the user&#039;s position into PlayerPrefs.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsLocationServiceBase.html#a48763b6f3f12f8065a0a4679479dbafe">http://infinity-code.com/doxygen/online … 79479dbafe</a><br /><a href="https://docs.unity3d.com/ScriptReference/PlayerPrefs.SetFloat.html">https://docs.unity3d.com/ScriptReferenc … Float.html</a><br />When starting the script, check for the presence of the old location, and if it is present, restore it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-07T19:47:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4361#p4361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set a default target position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4358#p4358" />
			<content type="html"><![CDATA[<p>Sorry... I didn&#039;t explain good my question.<br />I am working in a mobile game. I want to store the last device position and use it when the device doesn&#039;t have gps signal.<br />So I need some script example to setup the map sition and the user marker position with my saving values.</p><p>Thanks!!</p>]]></content>
			<author>
				<name><![CDATA[adri2111]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=751</uri>
			</author>
			<updated>2018-12-07T13:57:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4358#p4358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set a default target position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4342#p4342" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Simply move the map to the desired location and click Save State.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-04T09:45:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4342#p4342</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Set a default target position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4338#p4338" />
			<content type="html"><![CDATA[<p>Hi.</p><p>I am working to set the default character position when the GPS is without signal. What is the best practice in this case?</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[adri2111]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=751</uri>
			</author>
			<updated>2018-12-04T08:05:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4338#p4338</id>
		</entry>
</feed>
