# UpdateEditorSelection()

> Updates the Editor Selection to match the EntityId of the nodes that are flagged as selected in the Hierarchy.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy.Editor](/engine/6000.5/script-reference/unity/hierarchy/editor.md)
* **Assembly:** UnityEditor

```csharp
public void UpdateEditorSelection()
```

### Remarks

Use this method to update the Editor [Selection](/engine/6000.5/script-reference/unityeditor/selection.md) after making a change to the [HierarchyWindow.View](/engine/6000.5/script-reference/unity/hierarchy/editor/hierarchywindow/view.md) selection.
