docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021