Class SceneReference
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
SceneReference
Namespace: ShadowBox.Types
Assembly: cs.temp.dll.dll
Syntax
public class SceneReference : ISerializationCallbackReceiver
Fields
SceneName
Declaration
public string SceneName
Field Value
Type | Description |
---|---|
System.String |
Properties
IsAssigned
Declaration
public bool IsAssigned { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
LoadScene(LoadSceneMode)
Declaration
public void LoadScene(LoadSceneMode mode = null)
Parameters
Type | Name | Description |
---|---|---|
LoadSceneMode | mode |
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()