protected override async Task OnUnloadAsync(Scene scene, SceneUnloadParameters parameters) { SceneInstance instance = AddressableUtility.GetAsSceneInstance(scene); await Addressables.UnloadSceneAsync(instance).Task; }
protected override void OnUnload(Scene scene, SceneUnloadParameters parameters) { throw new NotSupportedException("Addressable does not support immediate scene unload."); }