# Editor.EditorUtility.RenameAsset

```csharp
static bool RenameAsset(Asset asset, string newName)
```

Moves a file to the same directory but gives it a new name

### Parameters

- `asset` (`Asset`)
- `newName` (`string`)

### Returns

`bool`

Declared in [Editor.EditorUtility](/api/Editor.EditorUtility).
Assembly: `Sandbox.Tools`.
