using Mapbox.Unity.SourceLayers;
namespace Mapbox.Unity.Map
{
using Mapbox.Unity.MeshGeneration.Modifiers;
using System;
[Serializable]
public class ColliderOptions : ModifierProperties, ISubLayerColliderOptions
{
public override Type ModifierType
{
get
{
return typeof(ColliderModifier);
}
}
public ColliderType colliderType = ColliderType.None;
///
/// Enable/Disable feature colliders and sets the type of colliders to use.
///
/// Type of the collider to use on features.
public virtual void SetFeatureCollider(ColliderType colType)
{
if (colliderType != colType)
{
colliderType = colType;
HasChanged = true;
}
}
}
}