<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to Set the Rendering Order of Multiple Poly]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=990&amp;type=atom" />
	<updated>2018-12-18T19:43:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=990</id>
		<entry>
			<title type="html"><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4428#p4428" />
			<content type="html"><![CDATA[<p>By default, drawing elements uses Tileset DrawingElement shader.<br />It has Queue = &quot;Transparent-50&quot; (2950).<br />This means they will conflict with the markers after renderQueueOffset = 49.<br />Are you sure you need so many sorted drawing elements?<br />If you are sure that you need it:<br />You can create a new material with a shader that has a Render Queue visible (for example, Unlit / Transparent or Legacy / Transparent / Diffuse), increase Render Queue and use it in Online Maps Tileset Control / Materials &amp; Shaders / Marker Material.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-18T19:43:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4428#p4428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4425#p4425" />
			<content type="html"><![CDATA[<p>Hello, I have completed part of the effect according to your case. But when I dynamically generate multiple polys, they will override markers. How to keep marker at the top? Thank you</p>]]></content>
			<author>
				<name><![CDATA[yinyu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=833</uri>
			</author>
			<updated>2018-12-18T14:37:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4425#p4425</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4420#p4420" />
			<content type="html"><![CDATA[<p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class DrawingElementOrderExample : MonoBehaviour
{
    private void Start()
    {
        OnlineMapsDrawingLine frontLine = new OnlineMapsDrawingLine(new double[]
        {
            -5, -5, 5, 5
        }, Color.blue, 3);
        frontLine.renderQueueOffset = 1;

        OnlineMapsDrawingLine normalLine = new OnlineMapsDrawingLine(new double[]
        {
            -5, 5, 5, -5
        }, Color.green, 3);

        OnlineMapsDrawingRect backRect = new OnlineMapsDrawingRect(-3, -3, 6, 6);
        backRect.borderColor = Color.yellow;
        backRect.borderWidth = 3;
        backRect.backgroundColor = Color.red;
        backRect.renderQueueOffset = -1;

        OnlineMaps.instance.AddDrawingElement(frontLine);
        OnlineMaps.instance.AddDrawingElement(normalLine);
        OnlineMaps.instance.AddDrawingElement(backRect);

    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-17T12:01:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4420#p4420</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4417#p4417" />
			<content type="html"><![CDATA[<p>thank you</p>]]></content>
			<author>
				<name><![CDATA[yinyu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=833</uri>
			</author>
			<updated>2018-12-16T23:59:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4417#p4417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4416#p4416" />
			<content type="html"><![CDATA[<p>Hello, I&#039;m sorry I don&#039;t understand what you mean. How to use OnlineMaps Drawing Element is one of the ways? Can you give me an example? Thank you. I have multiple Markers, lines, poly. I want to customize their display order.</p>]]></content>
			<author>
				<name><![CDATA[yinyu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=833</uri>
			</author>
			<updated>2018-12-16T11:26:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4416#p4416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4399#p4399" />
			<content type="html"><![CDATA[<p>Hello.</p><p>To change the order of drawing elements you can use OnlineMapsDrawingElement.renderQueueOffset.<br />If this is not suitable for you, we can discuss the implementation of some other way.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-13T19:21:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4399#p4399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to Set the Rendering Order of Multiple Poly]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4390#p4390" />
			<content type="html"><![CDATA[<p>I have multiple poly and markers. How can I customize their rendering order? For example, I want a poly to be displayed on the third floor. I saw the official case &quot;Tileset Marker DepthExample&quot;, but it seems that only the order of multiple markers can be set?</p>]]></content>
			<author>
				<name><![CDATA[yinyu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=833</uri>
			</author>
			<updated>2018-12-13T08:06:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4390#p4390</id>
		</entry>
</feed>
