コード例 #1
0
        protected override async Task OnUnloadAsync(Scene scene, SceneUnloadParameters parameters)
        {
            SceneInstance instance = AddressableUtility.GetAsSceneInstance(scene);

            await Addressables.UnloadSceneAsync(instance).Task;
        }
コード例 #2
0
 protected override void OnUnload(Scene scene, SceneUnloadParameters parameters)
 {
     throw new NotSupportedException("Addressable does not support immediate scene unload.");
 }