<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Is there a way to scroll the map when buildings are placed on it?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=188&amp;type=atom" />
	<updated>2016-07-17T19:36:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=188</id>
		<entry>
			<title type="html"><![CDATA[Re: Is there a way to scroll the map when buildings are placed on it?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=851#p851" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Example of how to disable colliders:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class DisableBuildingColliders : MonoBehaviour
{
    private void Start()
    {
        OnlineMapsBuildings.instance.OnBuildingCreated += OnBuildingCreated;
    }

    private void OnBuildingCreated(OnlineMapsBuildingBase building)
    {
        building.GetComponent&lt;MeshCollider&gt;().enabled = false;
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-07-17T19:36:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=851#p851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Is there a way to scroll the map when buildings are placed on it?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=847#p847" />
			<content type="html"><![CDATA[<p>Hi, I&#039;m loving this asset so far, but I&#039;m having one issue. When I add the building script.. the buildings block the mouse-down dragging input.</p><p>Is there a way to ignore the buildings so that I can drag anywhere on the map to move it around?</p>]]></content>
			<author>
				<name><![CDATA[PyroStudios]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=182</uri>
			</author>
			<updated>2016-07-17T14:51:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=847#p847</id>
		</entry>
</feed>
