Search Unity

Question Unity EditorWindow scripting

Discussion in 'Getting Started' started by bratan20000, Jun 18, 2022.

  1. bratan20000

    bratan20000

    Joined:
    Oct 28, 2021
    Posts:
    12
    HI, guys!
    So, I want to create some sort of Scene in the Editor Window. I need to easier creating decorations for some rooms. So, how it must be looked. You have button "Generate Room" it generate room W x H size. Then you can drop prefabs in this "Scene" in the Editor Window and create this specific patterns of decoration.
    So, I tried inherits from SceneView and create new Scene using : EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);
    but when i did this, my main scene overlaps by this new scene.
    Maybe, using Scene here not the best method.
    Perhaps there is a better method to do this.
    Thanks!