# Renaming a scene

> Understanding how to rename a scene

Source: https://doc.babylonjs.com/communityExtensions/editor/workspace/renamingScene

## Renaming a Scene

To rename a scene, just go to the `Assets Browser` panel and rename the scene file by double-clicking its name.

Once accepted, the following folders will be renamed:

- _`workspacePath`/projects/`oldname`_ -> _`workspacePath`/projects/`newname`_
- _`workspacePath`/scenes/`oldname`_ -> _`workspacePath`/scenes/`newname`_

Scene names must be unique. If the folders already exist (in other words, if the scene already exists),
then the operation is aborted.

## Renaming paths in loaders in sources

Paths to scenes loaded in the code must also be updated.

For example:

```typescript
const rootUrl = "./scenes/oldName/";

AppendSceneAsync(rootUrl + "scene.babylon", this.scene, () => {
  // ...
});
```

should be updated to:

```typescript
const rootUrl = "./scenes/newName/";

AppendSceneAsync(rootUrl + "scene.babylon", this.scene, () => {
  // ...
});
```
