<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Get Marker from game object?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=658&amp;type=atom" />
	<updated>2017-09-22T01:08:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=658</id>
		<entry>
			<title type="html"><![CDATA[Re: Get Marker from game object?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2836#p2836" />
			<content type="html"><![CDATA[<p>Thanks that worked great!</p>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2017-09-22T01:08:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2836#p2836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Get Marker from game object?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2835#p2835" />
			<content type="html"><![CDATA[<p>Hello.</p><div class="codebox"><pre><code>OnlineMapsMarker3D marker3D = GetComponent&lt;OnlineMapsMarker3DInstance&gt;().marker as OnlineMapsMarker3D;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-09-22T00:59:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2835#p2835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Get Marker from game object?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2834#p2834" />
			<content type="html"><![CDATA[<p>I have a 3D marker in the scene (tileset map), with OnPointerClick event handled by a script.&nbsp; I would like to get the OnlineMapsMarker3D component from this game object.&nbsp; Is this possible without keeping track of the marker (or index); strictly getting it from the game object and/or it&#039;s children?</p><p>Thanks.</p><p>EDIT:&nbsp; Here&#039;s the error I&#039;m getting:</p><p>ArgumentException: GetComponent requires that the requested component &#039;OnlineMapsMarker3D&#039; derives from MonoBehaviour or Component or is an interface.</p>]]></content>
			<author>
				<name><![CDATA[digitalrock]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=308</uri>
			</author>
			<updated>2017-09-22T00:43:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2834#p2834</id>
		</entry>
</feed>
