Interface ISceneProvider
Namespace: UnityEngine.ResourceManagement
Syntax
public interface ISceneProvider
Methods
ProvideSceneAsync(IResourceLocation, IAsyncOperation<IList<Object>>, LoadSceneMode)
Asynchronously loads a scene.
Declaration
IAsyncOperation<Scene> ProvideSceneAsync(IResourceLocation location, IAsyncOperation<IList<object>> loadDependencyOperation, LoadSceneMode loadMode)
Parameters
| Type | Name | Description |
|---|---|---|
| IResourceLocation | location | Location to load. |
| IAsyncOperation<System.Collections.Generic.IList<System.Object>> | loadDependencyOperation | Async load operation for scene dependencies. |
| LoadSceneMode | loadMode | Scene load mode. |
Returns
| Type | Description |
|---|---|
| IAsyncOperation<Scene> | An async operation for the scene. |
ReleaseSceneAsync(IResourceLocation, Scene)
Release any resources associated with the scene at the given loc
Declaration
IAsyncOperation<Scene> ReleaseSceneAsync(IResourceLocation location, Scene scene)
Parameters
| Type | Name | Description |
|---|---|---|
| IResourceLocation | location | Location to unload. |
| Scene | scene |
Returns
| Type | Description |
|---|---|
| IAsyncOperation<Scene> | An async operation for the scene, completed when the scene is unloaded. |