Class SceneReference
A wrapper that provides the means to safely serialize SceneAsset References.
Namespace: UnityEngine.Industrial.Configuring.Staging
Syntax
[Serializable]
public class SceneReference : ISerializationCallbackReceiver
Properties
IsValidSceneAsset
Gets a value indicating whether this instance is valid scene asset.
Declaration
public bool IsValidSceneAsset { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
SceneAsset
Gets the scene asset.
Declaration
public Object SceneAsset { get; }
Property Value
Type | Description |
---|---|
Object | The scene asset. |
ScenePath
Gets or sets the scene path.
Declaration
public string ScenePath { get; set; }
Property Value
Type | Description |
---|---|
String | The scene path. |
Methods
OnAfterDeserialize()
Called when [after deserialize].
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
Called when [before serialize].
Declaration
public void OnBeforeSerialize()
Implements
Operators
Implicit(SceneReference to String)
Performs an implicit conversion from SceneReference to String.
Declaration
public static implicit operator string (SceneReference sceneReference)
Parameters
Type | Name | Description |
---|---|---|
SceneReference | sceneReference | The scene reference. |
Returns
Type | Description |
---|---|
String | The result of the conversion. |