# SetEntityId(string, EntityId)

> Store an EntityId value.

## Definition

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

```csharp
public static void SetEntityId(string key, EntityId value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[EntityId]\(/engine/6000.5/script-reference/unityengine/entityid)):&#x20;
