17 lines
374 B
C#
17 lines
374 B
C#
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;
|
|
}
|
|
}
|
|
}
|