SceneHandle
Handle to a scene. This is a wrapper around an EntityId.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Struct
- Namespace: UnityEngine.SceneManagement
- Assembly: UnityEngine.CoreModule
- Implements: IEquatable<SceneHandle>, IFormattable
public struct SceneHandle : IEquatable<SceneHandle>, IFormattable
Static Properties
Property | Description |
|---|---|
| None | The default value of a SceneHandle that is empty. |
Methods
Method | Description |
|---|---|
| Equals | Test two SceneHandle for equality. |
| GetHashCode | The hash code of the SceneHandle from the EntityId it wraps. |
| GetRawData | Gets the raw data of a SceneHandle (prefer to store the SceneHandle directly, and only use this as a fallback). |
| ToString | Returns a string representing the EntityId wrapped by the SceneHandle. |
Static Methods
Method | Description |
|---|---|
| FromRawData | Converts a ulong (raw data), into a SceneHandle. |
Operators
Operator | Description |
|---|---|
| operator == | Test two SceneHandle for equality. |
| operator != | Test two SceneHandle for inequality. |