<?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 — How can I choose which marker to use via script?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=227</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=227&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How can I choose which marker to use via script?.]]></description>
		<lastBuildDate>Wed, 03 Aug 2016 10:19:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How can I choose which marker to use via script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1027#p1027</link>
			<description><![CDATA[<p>No.</p><p>It should be:<br /></p><div class="codebox"><pre><code>// Must have &quot;Read / Write enabled - ON&quot;.
public Texture2D myMarkerTexture;

void SomeMethod()
{
    marker = OnlineMaps.instance.AddMarker(getPosition(), myMarkerTexture, &quot;Player&quot;);
}</code></pre></div><p>You specify the texture of the marker in the inspector.<br />If you want to dynamically load texture, use Resources.Load.<br /><a href="https://docs.unity3d.com/ScriptReference/Resources.Load.html">https://docs.unity3d.com/ScriptReferenc … .Load.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 03 Aug 2016 10:19:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1027#p1027</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I choose which marker to use via script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1024#p1024</link>
			<description><![CDATA[<p>Hi again!</p><p>Am I using it right?</p><p>marker = OnlineMaps.instance.AddMarker(getPosition(), myNewMarker.png, &quot;Player&quot;);</p><p>And should I put the myNewMarker.png in the folder with the defaultmarker.png?</p><p>Thanks Alex!</p>]]></description>
			<author><![CDATA[null@example.com (ogli223)]]></author>
			<pubDate>Wed, 03 Aug 2016 02:20:18 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1024#p1024</guid>
		</item>
		<item>
			<title><![CDATA[Re: How can I choose which marker to use via script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1017#p1017</link>
			<description><![CDATA[<p>Hello.</p><p>OnlineMaps.AddMarker has a parameter markerTexture.<br />Use this parameter to specify the marker texture.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#a17065601f05ead6195e086fa6fad9ee8">http://infinity-code.com/doxygen/online … fa6fad9ee8</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 02 Aug 2016 11:18:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1017#p1017</guid>
		</item>
		<item>
			<title><![CDATA[How can I choose which marker to use via script?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1014#p1014</link>
			<description><![CDATA[<p>HI!</p><p>Whenever I add a marker via script, It only shows the green marker. how can I choose which marker to choose via script?</p>]]></description>
			<author><![CDATA[null@example.com (ogli223)]]></author>
			<pubDate>Tue, 02 Aug 2016 10:28:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1014#p1014</guid>
		</item>
	</channel>
</rss>
