Skip to main content

Class SceneAssetReference

An addressable asset reference specifically for Unity scenes. This type wraps AssetReferenceT<SceneAsset> in the Editor to provide scene-specific type safety, while falling back to AssetReference at runtime to work with addressable systems.

[Serializable]
public class SceneAssetReference : AssetReferenceT<SceneAsset>

Inheritance​

AssetReferenceT<SceneAsset>→SceneAssetReference

Constructors​

SceneAssetReference(string)​

Creates a new SceneAssetReference using the given GUID.

public SceneAssetReference(string guid)

Parameters​

NameTypeDescription
guidstringThe GUID of the scene asset in the addressables system.