<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Adding marker position]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=651&amp;type=atom" />
	<updated>2017-09-15T02:16:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=651</id>
		<entry>
			<title type="html"><![CDATA[Re: Adding marker position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2811#p2811" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2017-09-15T02:16:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2811#p2811</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding marker position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2809#p2809" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-09-15T00:02:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2809#p2809</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Adding marker position]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2807#p2807" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2017-09-14T23:40:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2807#p2807</id>
		</entry>
</feed>
