<?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 — Convert DrawingPoly to Mesh ...or Marker?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1835</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1835&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Convert DrawingPoly to Mesh ...or Marker?.]]></description>
		<lastBuildDate>Wed, 15 Sep 2021 18:00:51 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Convert DrawingPoly to Mesh ...or Marker?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7712#p7712</link>
			<description><![CDATA[<p>Ok Alex, one last thing, I switched over to Tileset and I see now that my DrawingPolys are in fact game objects in the scene, however:</p><p>I am not seeing how I can apply any components to the drawing element</p><p>When I try to apply it this way: <br /></p><div class="codebox"><pre><code> myDrawingElement.instance.gameobject.AddComponent&lt;BoxCollider&gt;()</code></pre></div><p>the instance is always null--note I am trying to assign the collider right after it is added to the map....so it should be there right?</p><p>Is there another way I should be approaching this?</p><p>Currently I&#039;m getting around it by going into the source code and adding the collider when the mesh filter and renderer are added, and then once the mesh is updated with the vertices, I update the collider&#039;s size and center.</p><p>It would be nice to do this without having to dive into your code.</p><p>I&#039;m sure I&#039;m missing something</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Wed, 15 Sep 2021 18:00:51 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7712#p7712</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert DrawingPoly to Mesh ...or Marker?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7710#p7710</link>
			<description><![CDATA[<p>Ok thanks Alex!</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Wed, 15 Sep 2021 13:11:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7710#p7710</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert DrawingPoly to Mesh ...or Marker?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7702#p7702</link>
			<description><![CDATA[<p>You can use Drawing Element events with any control.<br />If you want to get a GameObject, this is only possible with Tileset.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 14 Sep 2021 23:13:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7702#p7702</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert DrawingPoly to Mesh ...or Marker?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7698#p7698</link>
			<description><![CDATA[<p>So I&#039;m drawing it on a 2D map, which isnt a Tileset, is there a way to do that?&nbsp; Or do I need to just switch to 3d and go with Tileset?</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Tue, 14 Sep 2021 19:28:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7698#p7698</guid>
		</item>
		<item>
			<title><![CDATA[Re: Convert DrawingPoly to Mesh ...or Marker?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7697#p7697</link>
			<description><![CDATA[<p>Hello.</p><p>If you are using a Tileset, each drawing element is a separate GameObject that you can add a Collider to and interact with.<br />Or each drawing element has events that you can use.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsDrawingElement.html#a2831c1d3f6d40e4d6e520f7c3bd5d9b1">https://infinity-code.com/doxygen/onlin … 7c3bd5d9b1</a></p><p>Yes, you can use something else instead of the Drawing API, including markers or manual positioning of GameObjects. <br />But in this case, you will need to implement the drawing yourself.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 14 Sep 2021 19:14:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7697#p7697</guid>
		</item>
		<item>
			<title><![CDATA[Convert DrawingPoly to Mesh ...or Marker?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7694#p7694</link>
			<description><![CDATA[<p>Currently when I create a DrawingPoly and add it to the map, it is not a selectable mesh object.</p><p>Is there a way I can convert it, maybe to a marker, or some kind of game object that can be selected after creation?</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Tue, 14 Sep 2021 15:12:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7694#p7694</guid>
		</item>
	</channel>
</rss>
