# SceneHandle

> Handle to a scene. This is a wrapper around an EntityId.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.SceneManagement](/engine/6000.5/script-reference/unityengine/scenemanagement.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<SceneHandle>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IFormattable](https://learn.microsoft.com/dotnet/api/system.iformattable)

```csharp
public struct SceneHandle : IEquatable<SceneHandle>, IFormattable
```

## Static Properties

| Property                                                                                | Description                                       |
| --------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [None](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/none.md) | The default value of a SceneHandle that is empty. |

## Methods

| Method                                                                                                | Description                                                                                                     |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [Equals](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/equals.md)           | Test two SceneHandle for equality.                                                                              |
| [GetHashCode](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/gethashcode.md) | The hash code of the SceneHandle from the EntityId it wraps.                                                    |
| [GetRawData](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/getrawdata.md)   | Gets the raw data of a SceneHandle (prefer to store the SceneHandle directly, and only use this as a fallback). |
| [ToString](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/tostring.md)       | Returns a string representing the EntityId wrapped by the SceneHandle.                                          |

## Static Methods

| Method                                                                                                | Description                                      |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [FromRawData](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/fromrawdata.md) | Converts a ulong (raw data), into a SceneHandle. |

## Operators

| Operator                                                                                                | Description                          |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| [operator ==](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/op-equality.md)   | Test two SceneHandle for equality.   |
| [operator !=](/engine/6000.5/script-reference/unityengine/scenemanagement/scenehandle/op-inequality.md) | Test two SceneHandle for inequality. |
