<?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 Set the Rendering Order of Multiple Poly]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=990</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=990&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to Set the Rendering Order of Multiple Poly.]]></description>
		<lastBuildDate>Tue, 18 Dec 2018 19:43:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4428#p4428</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 18 Dec 2018 19:43:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4428#p4428</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4425#p4425</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Tue, 18 Dec 2018 14:37:06 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4425#p4425</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4420#p4420</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 17 Dec 2018 12:01:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4420#p4420</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4417#p4417</link>
			<description><![CDATA[<p>thank you</p>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Sun, 16 Dec 2018 23:59:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4417#p4417</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4416#p4416</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Sun, 16 Dec 2018 11:26:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4416#p4416</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to Set the Rendering Order of Multiple Poly]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4399#p4399</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 13 Dec 2018 19:21:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4399#p4399</guid>
		</item>
		<item>
			<title><![CDATA[How to Set the Rendering Order of Multiple Poly]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4390#p4390</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Thu, 13 Dec 2018 08:06:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4390#p4390</guid>
		</item>
	</channel>
</rss>
