<?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 — DrawLine texture doesn't fit]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1555</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1555&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in DrawLine texture doesn't fit.]]></description>
		<lastBuildDate>Thu, 02 Jul 2020 12:48:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: DrawLine texture doesn't fit]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6435#p6435</link>
			<description><![CDATA[<p>Hello.</p><p>The Drawing API is not suitable for this.<br />To draw a dotted line it is better to use LineRenderer or this example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/DottedLineExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 02 Jul 2020 12:48:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6435#p6435</guid>
		</item>
		<item>
			<title><![CDATA[DrawLine texture doesn't fit]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6433#p6433</link>
			<description><![CDATA[<p>Hi Alex, How are you doing?</p><p>I jump into this problem today. I&#039;m using the code below to draw a texturized line on my map connecting 2 points. I&#039;ve tried to adjust it by using UV settings with no success. Looks like the line is drawn with many small pieces of meshes with different textures UV mapping coordinates. Also, tried all forms of texture wrapMode and materials.</p><p>Any math to solve this?</p><div class="codebox"><pre><code>        line = new OnlineMapsDrawingLine(points);
        line.texture = lineTexture;
        line.width = 8.0f;
        line.texture.wrapModeW = TextureWrapMode.Clamp;
        OnlineMapsDrawingElementManager.AddItem(line);</code></pre></div><p>It&#039;s supposed to look like a black dotted line...</p><p><span class="postimg"><img src="https://funlabs.com.br/images/Foto1.png" alt="PunBB bbcode test" /></span><br /><span class="postimg"><img src="https://funlabs.com.br/images/Foto2.png" alt="PunBB bbcode test" /></span><br /><span class="postimg"><img src="https://funlabs.com.br/images/Foto3.png" alt="PunBB bbcode test" /></span><br /><span class="postimg"><img src="https://funlabs.com.br/images/Foto4.png" alt="PunBB bbcode test" /></span></p><p>Thank You.</p>]]></description>
			<author><![CDATA[null@example.com (digitalmkt)]]></author>
			<pubDate>Wed, 01 Jul 2020 22:19:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6433#p6433</guid>
		</item>
	</channel>
</rss>
