Namespace: | Sirenix.OdinInspector.Editor.Validation |
Assembly: | Sirenix.OdinInspector.Editor |
public struct SceneReference : IEquatable<SceneReference>
public SceneReference(string guid)
System.String | guid |
public SceneReference(Scene scene)
UnityEngine.SceneManagement.Scene | scene |
public string GUID
public static readonly SceneReference Invalid
public bool IsValid
public bool IsActive { get; }
public bool IsLoaded { get; }
public string Name { get; }
public string Path { get; }
public override bool Equals(object obj)
System.Object | obj |
System.Boolean |
public static SceneReference FromAsset(SceneAsset asset)
UnityEditor.SceneAsset | asset |
SceneReference |
public static SceneReference FromPath(string path)
System.String | path |
SceneReference |
public override int GetHashCode()
System.Int32 |
public SceneAsset GetSceneAsset()
UnityEditor.SceneAsset |
public bool IsInBuildSettings(bool mustBeEnabled = false)
System.Boolean | mustBeEnabled |
System.Boolean |
public bool TryGetScene(out Scene scene)
UnityEngine.SceneManagement.Scene | scene |
System.Boolean |
public bool TryOpenScene(OpenSceneMode mode, out Scene scene)
UnityEditor.SceneManagement.OpenSceneMode | mode | |
UnityEngine.SceneManagement.Scene | scene |
System.Boolean |
public static bool operator ==(SceneReference a, SceneReference b)
SceneReference | a | |
SceneReference | b |
System.Boolean |
public static bool operator !=(SceneReference a, SceneReference b)
SceneReference | a | |
SceneReference | b |
System.Boolean |