docs.unity3d.com
    Show / Hide Table of Contents

    Class SceneReference

    A wrapper that provides the means to safely serialize SceneAsset References.

    Inheritance
    Object
    SceneReference
    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

    true if this instance is valid scene asset; otherwise, false.

    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
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    Called when [before serialize].

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023