# GetRawData()

> Returns the raw internal data of this EntityId.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Deprecated.** Please use EntityId.ToULong(EntityId) instead.

```csharp
public ulong GetRawData()
```

### Returns

| Type                                                          | Description                                          |
| ------------------------------------------------------------- | ---------------------------------------------------- |
| [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) | The raw representation as a 64-bit unsigned integer. |

### Remarks

This method is obsolete. To get the raw data of an `EntityId`, use [EntityId.ToULong](/engine/6000.6/script-reference/unityengine/entityid/toulong.md), and to create an `EntityId` from raw data, use [EntityId.FromULong](/engine/6000.6/script-reference/unityengine/entityid/fromulong.md).

The raw data does not reflect creation order or any other meaningful property. Do not rely on the raw data for ordering or comparison purposes.
