<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Access Markers in runtime to collect info and expand the class]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1676&amp;type=atom" />
	<updated>2021-01-07T20:28:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1676</id>
		<entry>
			<title type="html"><![CDATA[Re: Access Markers in runtime to collect info and expand the class]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7051#p7051" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Markers are stored in OnlineMapsMarkerManager.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerManager.html">https://infinity-code.com/doxygen/onlin … nager.html</a><br />You can create / delete / modify this runtime.</p><p>If you need to store some information in a marker instance, you can do so using customFields.<br />How to use it:<br /><a href="https://infinity-code.com/atlas/online-maps/pages/MarkerCustomDataExample.html">https://infinity-code.com/atlas/online- … ample.html</a><br />You can store any type of value in customFields.</p><p>If necessary, you can extend the OnlineMapsMarker class, but to be honest, I don&#039;t know why this might be necessary.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-01-07T20:28:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7051#p7051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Access Markers in runtime to collect info and expand the class]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7049#p7049" />
			<content type="html"><![CDATA[<p>Hello,</p><p>Thank you very much for your help so far. I have a question regarding Markers in runtime and how I can access to their info(label, coordinates, game object prefab...maybe also expand the class if possible).</p><p>At the moment,&nbsp; have a bunch of POI/Markers that I have placed and now I want to access them in runtime to collect information.</p><p>When my GPS Marker (the player) goes within a certain range to a specific marker I would like to use the marker information to create an interaction (for instance, I could use the label or a string field to load a specific scene)</p><p>So far I have used colliders to trigger the event, but I am not able to access the marker info. The alternative would be to create&nbsp; hundreds of different prefabs for each single marker, but thats not scalable or efficient.</p><p>Tried &gt;OnlineMapsMarker class but it doesnt seem to do anything for me. </p><p>Thanks<br />Yuri</p>]]></content>
			<author>
				<name><![CDATA[Yuri1976]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1489</uri>
			</author>
			<updated>2021-01-07T16:54:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7049#p7049</id>
		</entry>
</feed>
