Search Unity

Where is getPreviewSceneAt and getAllPreviewScenes function?

Discussion in 'Prefabs' started by Thaina, Aug 1, 2019.

  1. Thaina

    Thaina

    Joined:
    Jul 13, 2012
    Posts:
    243
    We have function
    EditorSceneManager.NewPreviewScene
    that cannot do anything. And if we don't cache it ourselves. It will stay in the editor. It will leave it trace only in
    EditorSceneManager.previewSceneCount
    but we have no way to interact with it after that

    Even the source has only
    internal OpenPreviewScene
    (why it was internal though? I think it should be exposed to) I think unity should have put all created PreviewScene in some collection anyway. Please expose that so we could find and close it when it don' needed