コード例 #1
0
        /// <inheritdoc/>
        public AsyncOperationHandle <SceneInstance> ReleaseScene(ResourceManager resourceManager, AsyncOperationHandle <SceneInstance> sceneLoadHandle)
        {
            var unloadOp = new UnloadSceneOp();

            unloadOp.Init(sceneLoadHandle);
            return(resourceManager.StartOperation(unloadOp, sceneLoadHandle));
        }
コード例 #2
0
        /// <inheritdoc/>
        AsyncOperationHandle <SceneInstance> ISceneProvider2.ReleaseScene(ResourceManager resourceManager, AsyncOperationHandle <SceneInstance> sceneLoadHandle, UnloadSceneOptions unloadOptions)
        {
            var unloadOp = new UnloadSceneOp();

            unloadOp.Init(sceneLoadHandle, unloadOptions);
            return(resourceManager.StartOperation(unloadOp, sceneLoadHandle));
        }