Load Scene from .unity File

Hello. I’m making a level editor for my game and I need to know how to Load a level’s scene the level from a .unity or YAML file. So players can upload .unity files to a server and then download and run them.

Did you got any answer ?

@CrashCZ

I think this should work. I hope it does. Cheers!

using UnityEngine;
using UnityEngine.SceneManagement;

public class PutScriptNameHere : MonoBehaviour {
    public AssetBundle bundle;
    public int sceneId = 0;
    string[] scenePath;

    void Start()
    {
        scenePath = bundle.GetAllScenePaths();
        AsyncOperation async = SceneManager.LoadSceneAsync(System.IO.Path.GetFileNameWithoutExtension(scenePath[sceneId]));
    }
}