You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
479 B

namespace Mapbox.Unity.MeshGeneration.Modifiers
{
using UnityEngine;
using Mapbox.Unity.MeshGeneration.Components;
using Mapbox.Unity.MeshGeneration.Data;
[CreateAssetMenu(menuName = "Mapbox/Modifiers/Layer Modifier")]
public class LayerModifier : GameObjectModifier
{
[SerializeField]
private int _layerId;
public override void Run(VectorEntity ve, UnityTile tile)
{
ve.GameObject.layer = _layerId;
}
}
}