Scene
A serializable wrapper around Unity's SceneAsset that stores scene metadata and supports implicit conversions.
Definition
Namespace: Paragon.Core.SceneManagement
Assembly: Paragon.dll
[Serializable]
public class Scene : IEquatable<Scene>, ISerializationCallbackReceiverImplements: IEquatable<Scene>, ISerializationCallbackReceiver
Properties
Asset
Returns the underlying SceneAsset reference.
public SceneAsset Asset { get; }Path
The full asset path to the scene file.
public string Path { get; }Name
The scene name without file extension.
GUID
The unique asset GUID for the scene.
Constructors
Scene(SceneAsset)
Creates a new Scene wrapper from a SceneAsset.
sceneAsset
SceneAsset
The Unity scene asset to wrap
Operators
Implicit Conversions
Equality Operators
Methods
Equals(Scene)
Determines equality based on path, name, and GUID.
Returns: bool — true if all properties match
GetHashCode()
Returns a hash code combining path, name, and GUID.
Returns: int — Combined hash code
ToString()
Returns the scene name.
Returns: string — The scene name
Example
See Also
Last updated
Was this helpful?