<?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 — Adding marker position]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=651</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=651&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding marker position.]]></description>
		<lastBuildDate>Fri, 15 Sep 2017 02:16:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding marker position]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2811#p2811</link>
			<description><![CDATA[<p>Thanks Alex, #2 worked great.&nbsp; In case anyone is confused:</p><p>Prefab hierarchy...</p><p>SomeGameObject&nbsp; &nbsp; &nbsp;// &lt;-- this is 3D map marker game object<br />&nbsp; &nbsp;ChildGameObject&nbsp; &nbsp;// &lt;--- change pos/rot/scale of this game object</p>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Fri, 15 Sep 2017 02:16:37 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2811#p2811</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding marker position]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2809#p2809</link>
			<description><![CDATA[<p>Hello.</p><p>You have two ways:<br />1. OnlineMapsMarker3D.altitude<br />2. Wrap your 3d marker to a new GameObject, create a prefab from an external GameObject, and use new prefab for 3d markers.<br />In this case, you can modify the position, rotation and scale of the internal GameObject.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 15 Sep 2017 00:02:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2809#p2809</guid>
		</item>
		<item>
			<title><![CDATA[Adding marker position]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2807#p2807</link>
			<description><![CDATA[<p>I&#039;m adding a marker using:</p><p>&#039;OnlineMapsMarker3D marker3D = control.AddMarker3D(lon,lat, prefab);&#039;</p><p>This works great, but I want to adjust the Y position of the 3D marker(game object) in the scene.&nbsp; For example, the marker instance transform position based on the lat/long might be (10, 0, 15).&nbsp; I want to change the Y but can&#039;t figure out how.&nbsp; Here&#039;s what I&#039;ve tried:</p><p>// Get the 3D marker game object</p><p>GameObject currMarkerGO = currMarker.instance.transform.gameObject;</p><p>// Get the position vector</p><p>Vector3 pos = currMarkerGO.transform.position;</p><p>// Change Y pos</p><p>pos.y = 3.5f;</p><p>// Update marker position in scene</p><p>currMarker.instance.transform.position = pos;</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (digitalrock)]]></author>
			<pubDate>Thu, 14 Sep 2017 23:40:45 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2807#p2807</guid>
		</item>
	</channel>
</rss>
