Class SceneReference
A reference to a scene that works at both edit and runtime.
Implements
Inherited Members
Namespace: UnityEngine.Perception.Utilities
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
[MovedFrom("UnityEngine.Perception.Internal")]
public class SceneReference : ISerializationCallbackReceiver
Fields
sceneAsset
An in-editor reference to a scene asset.
Declaration
public SceneAsset sceneAsset
Field Value
Type | Description |
---|---|
SceneAsset |
Remarks
We convert this reference to a simple path to a scene (sceneAsset) for runtime use.
Properties
scene
The path to the scene referenced by (sceneAsset).
Declaration
public Scene scene { get; }
Property Value
Type | Description |
---|---|
Scene |
scenePath
The path to the scene specified by (sceneAsset).
Declaration
public string scenePath { get; }
Property Value
Type | Description |
---|---|
string |
Methods
OnAfterDeserialize()
After serialization function
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Before serialization, we populate the scenePath with information from the sceneAsset
Declaration
public void OnBeforeSerialize()