# FromULong(ulong)

> Creates an EntityId from raw ulong data. This should have come from another valid EntityId. (Use at your own risk. And bit arrangement might change.)

## Definition

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

```csharp
public static EntityId FromULong(ulong input)
```

### Parameters

**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): A ulong containing EntityId data that was retrieved from [EntityId.ToULong](/engine/6000.5/script-reference/unityengine/entityid/toulong.md).

### Returns

| Type                                                                | Description                                   |
| ------------------------------------------------------------------- | --------------------------------------------- |
| [EntityId](/engine/6000.5/script-reference/unityengine/entityid.md) | The EntityId created from the raw ulong data. |

### Remarks

This can be used for storing an [EntityId](/engine/6000.5/script-reference/unityengine/entityid.md) in a common variable, or for custom serialisation.
