Editar

Compartilhar via


SceneInfo Struct

Definition

public value class SceneInfo
[System.Serializable]
public struct SceneInfo
[<System.Serializable>]
type SceneInfo = struct
Public Structure SceneInfo
Inheritance
SceneInfo
Attributes

Fields

Asset
BuildIndex

Build index of the scene. If included in build settings and enabled, this will be a value greater than zero. If not included or disabled, this will be -1

Included

True if scene is included in build (NOT necessarily enabled)

Name

Name of the scene. Set by the property drawer.

Path

Path of the scene. Set by the property drawer.

Tag

Optional tag used to load and unload scenes in groups.

Properties

Empty
IsEmpty

Scene asset is not set.

IsEnabled
IsInBuildSettings

Returns true if the asset is not null and if the scene has a valid build index. Doesn't respect whether scene is enabled in build settings.

Applies to