Struct SceneImporterData | Entities | 0.16.0-preview.21
docs.unity.cn
    Show / Hide Table of Contents

    Struct SceneImporterData

    Contains scene data that is stored in the userData field of the importer.

    Namespace: Unity.Scenes.Editor
    Syntax
    public struct SceneImporterData

    Fields

    DisableLiveLink

    Exclude this scene from the LiveLink system. If excluded, the scene will be built into the player data if it is in the BuildSettings scenes list.

    Declaration
    public bool DisableLiveLink
    Field Value
    Type Description
    Boolean

    Methods

    CanLiveLinkScene(String)

    Method to check if a scene can be used by the LiveLink system.

    Declaration
    public static bool CanLiveLinkScene(string path)
    Parameters
    Type Name Description
    String path

    The scene path.

    Returns
    Type Description
    Boolean

    If true, the scene can be used.

    GetAtPath(String)

    Get the importer data for a scene given its path.

    Declaration
    public static SceneImporterData GetAtPath(string path)
    Parameters
    Type Name Description
    String path

    The scene path.

    Returns
    Type Description
    SceneImporterData

    The data for the scene.

    SetAtPath(String, SceneImporterData)

    Set the scene data for the scene at the given path.

    Declaration
    public static void SetAtPath(string path, SceneImporterData data)
    Parameters
    Type Name Description
    String path

    The scene path.

    SceneImporterData data

    The scene data.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 30 October 2020