Search Unity

Question LoadSceneInPlayMode doesn't start the scene [2018.4.31]

Discussion in 'Testing & Automation' started by as3mbus, Feb 26, 2021.

  1. as3mbus

    as3mbus

    Joined:
    Dec 5, 2016
    Posts:
    71
    I am having problem when trying to load my test scene through loadsceneinplaymode from test script. it doesn't execute awake/start method of behavior within it.

    the reason i did this is simply simple setup of the behavior is one i've testing.
    and adding enabled test scene in project is not an option as it would pollute the build size.

    i've tried basic LoadScene. and it does execute awake and start method just fine.
    but when i changed it to unity editor loadscene in play mode the event wont get invoked.

    is this intended ?
     
  2. as3mbus

    as3mbus

    Joined:
    Dec 5, 2016
    Posts:
    71
    so . again it might also be another of my stupidity. i left the .unity postfix for calling the scene.

    would be nice if there are an example in documentation pages