Struct SceneInfo
Assembly: cs.temp.dll.dll
Fields
SceneAsset reference. Since SceneAsset is an editor-only asset, we store an object reference instead.
Declaration
public UnityEngine.Object Asset
Field Value
Type |
Description |
UnityEngine.Object |
|
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
Declaration
Field Value
True if scene is included in build (NOT necessarily enabled)
Declaration
Field Value
Name of the scene. Set by the property drawer.
Declaration
Field Value
Path of the scene. Set by the property drawer.
Declaration
Field Value
Optional tag used to load and unload scenes in groups.
Declaration
Field Value
Properties
Declaration
public static SceneInfo Empty { get; }
Property Value
Declaration
public bool IsEmpty { get; }
Property Value
Declaration
public bool IsEnabled { get; }
Property Value
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.
Declaration
public bool IsInBuildSettings { get; }
Property Value