Beispiel #1
0
 private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Selection.ActiveObject != null)
     {
         EditorSceneObjectUtils.Delete(Selection.Selected);
     }
 }
        // --------------------------------------------------------------------

        public static void New()
        {
            mActiveSceneAsset = null;
            mActiveScene      = new Scene();

            EditorSceneObjectUtils.AddReflectionProbe(false);
            EditorSceneObjectUtils.AddPrimitive(BuiltInMesh.Quad, "Quad");

            OnSceneChanged?.Invoke(mActiveScene);
        }
Beispiel #3
0
 private void groupObjectsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.Group(Selection.Selected);
 }
Beispiel #4
0
 private void clearParentToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.ClearParent();
 }
Beispiel #5
0
 private void setParentToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.SetActiveAsParent();
 }
Beispiel #6
0
 private void toolStripCreateReflectionProbe_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.AddReflectionProbe();
 }
Beispiel #7
0
 private void duplicateSceneObjectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.Duplicate();
 }
Beispiel #8
0
 private void toolStripCreateCamera_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.AddCamera();
 }
Beispiel #9
0
 private void toolStripCreateLight_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.AddLight();
 }
Beispiel #10
0
 private void toolStripCreateQuad_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.AddPrimitive(BuiltInMesh.Quad, "Quad");
 }
Beispiel #11
0
 private void toolStripCreateSphere_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.AddPrimitive(BuiltInMesh.Sphere, "Sphere");
 }
Beispiel #12
0
 private void toolStripCreateTeapot_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.AddPrimitive(BuiltInMesh.Teapot, "Teapot");
 }
Beispiel #13
0
 private void toolStripCreateCylinder_Click(object sender, EventArgs e)
 {
     EditorSceneObjectUtils.AddPrimitive(BuiltInMesh.Cylinder, "Cylinder");
 }