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

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

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

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