<?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 to draw a line between 2 markers in?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=858</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=858&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to draw a line between 2 markers in?.]]></description>
		<lastBuildDate>Mon, 02 Jul 2018 02:29:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to draw a line between 2 markers in?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3674#p3674</link>
			<description><![CDATA[<p>thans,it&#039;s work!</p>]]></description>
			<author><![CDATA[null@example.com (137110518)]]></author>
			<pubDate>Mon, 02 Jul 2018 02:29:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3674#p3674</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to draw a line between 2 markers in?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3673#p3673</link>
			<description><![CDATA[<p>Hello.</p><p>Example:<br /></p><div class="codebox"><pre><code>using System.Collections.Generic;
using UnityEngine;

public class TwoMarkersLine:MonoBehaviour
{
    private List&lt;Vector2&gt; points;

    private void OnGUI()
    {
        if (GUILayout.Button(&quot;Add marker&quot;))
        {
            OnlineMapsMarker lastMarker = OnlineMaps.instance.AddMarker(Random.Range(-180f, 180f), Random.Range(-80f, 80f));
            points[1] = lastMarker.position; // Just update the line item in the list
            OnlineMaps.instance.Redraw();
        }
    }

    private void Start()
    {
        OnlineMapsMarker firstMarker = OnlineMaps.instance.AddMarker(Random.Range(-180f, 180f), Random.Range(-80f, 80f));
        OnlineMapsMarker lastMarker = OnlineMaps.instance.AddMarker(Random.Range(-180f, 180f), Random.Range(-80f, 80f));

        points = new List&lt;Vector2&gt;
        {
            firstMarker.position,
            lastMarker.position
        };

        OnlineMapsDrawingLine line = new OnlineMapsDrawingLine(points, Color.red, 3);
        OnlineMaps.instance.AddDrawingElement(line);
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 01 Jul 2018 21:56:51 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3673#p3673</guid>
		</item>
		<item>
			<title><![CDATA[How to draw a line between 2 markers in?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3672#p3672</link>
			<description><![CDATA[<p>1. I want to draw a line between 2 markers<br />2. click button add new marker,to draw a line between the marker and last marker.</p>]]></description>
			<author><![CDATA[null@example.com (137110518)]]></author>
			<pubDate>Sat, 30 Jun 2018 04:32:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3672#p3672</guid>
		</item>
	</channel>
</rss>
