<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — DrawLine texture doesn't fit]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1555&amp;type=atom" />
	<updated>2020-07-02T12:48:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1555</id>
		<entry>
			<title type="html"><![CDATA[Re: DrawLine texture doesn't fit]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6435#p6435" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-07-02T12:48:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6435#p6435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[DrawLine texture doesn't fit]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6433#p6433" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalmkt]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=313</uri>
			</author>
			<updated>2020-07-01T22:19:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6433#p6433</id>
		</entry>
</feed>
