# OnGroupRenamed(string, string)

> Called when this group is renamed.

## Definition

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

```csharp
protected virtual void OnGroupRenamed(string oldName, string newName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The old name of the group.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The new name of the group.
