TiledTerrain/Assets/Tile Terrain/Editor/MenuItems.cs

17 lines
374 B
C#
Raw Normal View History

2024-08-28 11:22:57 +03:00
using UnityEditor;
using UnityEngine;
namespace BitGames.Terrain
{
public static class MenuItems
{
[MenuItem("GameObject/Terrain/Terrain Floor")]
public static void CreateTerrain(MenuCommand command)
{
var go = new GameObject("Terrain");
var component = go.AddComponent<TerrainFloorRenderer>();
Selection.activeObject = go;
}
}
}