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(); Selection.activeObject = go; } } }