Class SceneAsset
Class used to serialize a reference to a scene asset that can be used
at runtime in a build, when the asset can no longer be directly
referenced. This caches the scene name based on the SceneAsset to use
at runtime to load.
Inheritance
System.Object
SceneAsset
Assembly: cs.temp.dll.dll
Syntax
public class SceneAsset : ISerializationCallbackReceiver
Fields
SceneName
Declaration
Field Value
Type |
Description |
System.String |
|
Methods
LoadScene(LoadSceneMode)
Declaration
public void LoadScene(LoadSceneMode mode = null)
Parameters
Type |
Name |
Description |
LoadSceneMode |
mode |
|
LoadSceneAsync(LoadSceneMode)
Declaration
public AsyncOperation LoadSceneAsync(LoadSceneMode mode = null)
Parameters
Type |
Name |
Description |
LoadSceneMode |
mode |
|
Returns
Type |
Description |
AsyncOperation |
|
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()