This commit is contained in:
runette committed 2024-04-22 15:52:51 +01:00
commit e0afef912e
1285 files changed
+83219

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
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;
/// <summary>
/// Enable/Disable feature colliders and sets the type of colliders to use.
/// </summary>
/// <param name="colliderType">Type of the collider to use on features.</param>
public virtual void SetFeatureCollider(ColliderType colType)
{
if (colliderType != colType)
{
colliderType = colType;
HasChanged = true;
}
}
}
}