Scripting API

Scene

struct in UnityEngine.SceneManagement · UnityEngine.CoreModule

14 of 14 of Unity's membersUnity's documentation
In Tassix

A loaded (or loading) scene, by handle. Default-constructed scenes are invalid.

Properties 8

int buildIndex { get; }
int handle { get; }
bool isDirty { get; }
bool isLoaded { get; }
bool isSubScene { get; set; }
string name { get; set; }
string path { get; }
int rootCount { get; }

Methods 4

bool Equals(Scene other)
bool Equals(object? obj)
int GetHashCode()
GameObject[] GetRootGameObjects()
void GetRootGameObjects(List<GameObject> rootGameObjects)
bool IsValid()

Operators 2

static bool operator !=(Scene lhs, Scene rhs)
static bool operator ==(Scene lhs, Scene rhs)

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.