Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Use scene view and property grid in custom window

Discussion in 'Extensions & OnGUI' started by fettsnoken, May 25, 2018.

  1. fettsnoken

    fettsnoken

    Joined:
    Mar 30, 2015
    Posts:
    1
    Hi, I want a build a voxel editor which produces a model asset inside the Unity editor. For this I have a custom editor window. The editor window will have a set of toolbars, a property grid and of course a 3D scene view in which the voxels are edited.
    It would be very nice if I could reuse the existing scene view already used by unity for the editing of normal game scenes as well as the existing property grid. Is this is any way possible? Do note that this scene view needs to be scoped to only present the voxels (in whatever way they are represented).
    The model asset which is the output of this editor should be updated more or less in realt ime and be visible in the normal scene view where used.
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    456
    Yes, this is possible. For drawing GUI to and interacting with the scene view, you can use the
    Editor.OnSceneGUI
    message or the undocumented
    SceneView.onSceneGUIDelegate
    event.

    You can use the EditorSceneManager to create a new empty scene in which to work.