コード例 #1
0
        protected override void OnGUI()
        {
            base.OnGUI();
            Ngon ngon = (Ngon)primitive;

            ngon.radius = EditorGUILayout.FloatField("Radius", ngon.radius);
            ngon.sides  = EditorGUILayout.IntField("Sides", ngon.sides);
            if (ngon.sides < 3)
            {
                ngon.sides = 3;
            }
        }
コード例 #2
0
 public override void Open(DreamteckSplinesEditor editor)
 {
     base.Open(editor);
     primitive = new Ngon();
 }