Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Any examples of LoadSceneInPlayMode

Discussion in 'Asset Bundles' started by lllelll, Feb 12, 2019.

  1. lllelll

    lllelll

    Joined:
    Feb 16, 2018
    Posts:
    2
    Hi all!

    Do anyone have an examples of EditorSceneManager.LoadSceneInPlayMode behaviour?

    I'm making "AssetBundle Loader Emulator" in Editor, to emulate a scene load from asset bundle, without add scene paths to "Build settings -> Scene Paths".
    I'm trying use this :
    Code (CSharp):
    1. EditorSceneManager.LoadSceneInPlayMode ("Bundles/Town/Town", new LoadSceneParameters (LoadSceneMode.Single, LocalPhysicsMode.None));
    I tried to use many variants of Scene path,
    but always Unity load scene "Town" without any objects and camera.

    Do anyone have any idea?
    Thanks!
     
  2. miharataj

    miharataj

    Joined:
    Sep 29, 2016
    Posts:
    1
    I have exactly same problem. LoadSceneAsyncInPlayMode works though.