Topic: Is there a way to scroll the map when buildings are placed on it?

Hi, I'm loving this asset so far, but I'm having one issue. When I add the building script.. the buildings block the mouse-down dragging input.

Is there a way to ignore the buildings so that I can drag anywhere on the map to move it around?

Re: Is there a way to scroll the map when buildings are placed on it?

Hello.

Example of how to disable colliders:

using UnityEngine;

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

    private void OnBuildingCreated(OnlineMapsBuildingBase building)
    {
        building.GetComponent<MeshCollider>().enabled = false;
    }
}
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.