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>, ISerializationCallbackReceiver

Implements: IEquatable<Scene>, ISerializationCallbackReceiver

Properties

Asset

Returns the underlying SceneAsset reference.

public SceneAsset Asset { get; }
circle-info

Only available in the Unity Editor (UNITY_EDITOR).

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.

Parameter
Type
Description

sceneAsset

SceneAsset

The Unity scene asset to wrap

circle-info

Only available in the Unity Editor (UNITY_EDITOR).

Operators

Implicit Conversions

Equality Operators

Methods

Equals(Scene)

Determines equality based on path, name, and GUID.

Returns: booltrue 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?