For loading scene inside editor I use this function:
It returns me instance of UnityEngine.DefaultAsset
Then I try load “myscene” using this function:
But it says that
Level ‘myscene’ (-1) couldn’t be loaded because it has not been added to the build settings.
I don’t want to add it to build settings, because in web player I load it using bundles.
And inside editor I want to load it directly. How can I do it?