<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How can I choose which marker to use via script?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=227&amp;type=atom" />
	<updated>2016-08-03T10:19:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=227</id>
		<entry>
			<title type="html"><![CDATA[Re: How can I choose which marker to use via script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1027#p1027" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-08-03T10:19:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1027#p1027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How can I choose which marker to use via script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1024#p1024" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ogli223]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=191</uri>
			</author>
			<updated>2016-08-03T02:20:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1024#p1024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How can I choose which marker to use via script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1017#p1017" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-08-02T11:18:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1017#p1017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How can I choose which marker to use via script?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1014#p1014" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ogli223]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=191</uri>
			</author>
			<updated>2016-08-02T10:28:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1014#p1014</id>
		</entry>
</feed>
