SceneInfo Struct

Definition

C++
public value class 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

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0