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

+21
View File
@@ -0,0 +1,21 @@
using Mapbox.Unity.MeshGeneration.Data;
namespace Mapbox.Unity.Map
{
using System;
using UnityEngine;
[Serializable]
public class UnityLayerOptions : MapboxDataProperty
{
[Tooltip("Add terrain tiles to Unity Layer")]
public bool addToLayer = false;
[Tooltip("Unity Layer id to which terrain tiles will get added.")]
public int layerId = 0;
public override void UpdateProperty(UnityTile tile)
{
tile.gameObject.layer = layerId;
}
}
}