# SceneTag

> A Unity-defined shared component assigned to all entities in the same subscene.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule
* **Implements:** [ISharedComponentData](/engine/7000.0/script-reference/unity/entities/isharedcomponentdata.md), [IQueryTypeParameter](/engine/7000.0/script-reference/unity/entities/iquerytypeparameter.md), [IEquatable\<SceneTag>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct SceneTag : ISharedComponentData, IQueryTypeParameter, IEquatable<SceneTag>
```

## Fields

| Value                                                                                 | Description                      |
| ------------------------------------------------------------------------------------- | -------------------------------- |
| [SceneEntity](/engine/7000.0/script-reference/unity/entities/scenetag/sceneentity.md) | The root entity of the subscene. |

## Methods

| Method                                                                                | Description                                                         |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Equals](/engine/7000.0/script-reference/unity/entities/scenetag/equals.md)           | Two SceneTags are equal if they have the same root subscene entity. |
| [GetHashCode](/engine/7000.0/script-reference/unity/entities/scenetag/gethashcode.md) | A unique hash code for comparison.                                  |
| [ToString](/engine/7000.0/script-reference/unity/entities/scenetag/tostring.md)       | A string for logging.                                               |
