using UnityEngine; using UnityEditor; public class ConelBoxGenerator { [MenuItem ("Tools/Else/ConelboxGenerate")] static void Ceate () { var conelbox = new GameObject ().transform; conelbox.name = "conelbox"; SetPosition (conelbox, 0, 0, 0); //Left var plane0 = GameObject.CreatePrimitive (PrimitiveType.Plane).transform; SetPosition (plane0, -5, 0, 0); SetRotation (plane0, 0, 0, -90); //right var p