Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback Public Create SubScene APIs

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by desertGhost_, Dec 8, 2022.

  1. desertGhost_

    desertGhost_

    Joined:
    Apr 12, 2018
    Posts:
    259
    Are there any plans to make public APIs for creating SubScenes in editor scripts?

    Something like
    EditorSceneManager.NewScene
    (e.g.
    EditorSubSceneManager.NewScene
    ) would be a great addition for anyone who might want to generate SubScenes in an editor script.

    Thanks.
     
    thelebaron likes this.
  2. topher_r

    topher_r

    Unity Technologies

    Joined:
    Jun 14, 2019
    Posts:
    36
    There are no plans for this. The reason is, that SubScenes aren't anything that special. You can create a SubScene from Script by creating a Unity Scene normally, saving it, then in a different scene add a GameObject with the SubScene monobehaviour. Then assign the scene you created to the SceneAsset property of said SubScene monobehaviour.