This plugin allows you to serialize scene asset in inspector for loaing via SceneLoader
.
[SerializeField] private SceneLoaderAsset nextScene;
private async void Awake()
{
await SceneLoader.LoadSceneAsync(nextScene);
//or
await SceneLoader.LoadSceneAsync(asset, new LoadSceneOptions()
{
SceneLoadMode = LoadSceneMode.Additive,
UseIntermediate = false,
ProgressChanged = ProgressChanged
});
}
private static void ProgressChanged(float value)
{
}