Class DLCSceneAsset
- Namespace
- DLCToolkit.Assets
- Assembly
- DLCToolkit.dll
Represents a scene asset included in the DLC. Scene assets are simply Unity scenes.
public sealed class DLCSceneAsset : DLCAsset
- Inheritance
-
DLCSceneAsset
- Inherited Members
Methods
ActivatePendingScene()
Attempt to switch activation to the current streamed scene loaded during the last async load operation.
This is the same as setting allowSceneActivation
to true and can be used to switch from a loading screen at a suitable time.
You must use one of the LoadAsync(LoadSceneMode, bool) methods first with allowSceneActivation
set to false
.
public void ActivatePendingScene()
Exceptions
- InvalidOperationException
There is no pending load scene operation
Load(LoadSceneMode)
Load the DLCSceneAsset.
public void Load(LoadSceneMode loadSceneMode)
Parameters
loadSceneMode
LoadSceneModeThe mode to use when loading the scene
Load(LoadSceneParameters)
Load the DLCSceneAsset.
public void Load(LoadSceneParameters loadSceneParameters)
Parameters
loadSceneParameters
LoadSceneParametersThe load scene parameters to use when loading the scene
LoadAsync(LoadSceneMode, bool)
Load the DLCSceneAsset asynchronously.
public DLCAsync LoadAsync(LoadSceneMode loadSceneMode, bool allowSceneActivation = true)
Parameters
loadSceneMode
LoadSceneModeShould the scene be additively loaded into the current scene
allowSceneActivation
boolShould the scene be activated as soon as it is loaded
Returns
LoadAsync(LoadSceneParameters, bool)
Load the DLCSceneAsset asynchronously.
public DLCAsync LoadAsync(LoadSceneParameters loadSceneParameters, bool allowSceneActivation = true)
Parameters
loadSceneParameters
LoadSceneParametersThe parameters to use when loading the scene
allowSceneActivation
boolShould the scene be activated as soon as it is loaded