-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update documentation for creating/renaming scenes
- Loading branch information
1 parent
35cfca6
commit f6e72d8
Showing
7 changed files
with
54 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Adding Scene To Workspace | ||
|
||
*Note: since Editor v4.4.0 the way to create new scenes changed. It is highly recommanded to update to to at least this version.* | ||
|
||
By default, a newly created workspace contains one scene. Per workspace, it is possible to manage multiple | ||
scenes in order to, for example, split levels of a game. | ||
|
||
A newly created scene is always empty and ready to receive new assets etc. | ||
|
||
## Creating A New Scene | ||
To create a new scene in the workspace, just go to the `Assets Browser` panel and select `Add -> Scene...`. | ||
|
||
![CreateNewProjectToolbar](./create-new-scene/create-new-project.png) | ||
|
||
Once clicked, a popin appears to ask for the name of the scene. Once the button `Finish` is clicked, | ||
the new scene is being created on the file system. Then, the Editor will ask to continue working | ||
on the current scene or load the new one. | ||
|
||
Once a scene has been created, a new folder located at *"`workspacePath`/projects/`sceneName`"* is created containing | ||
all the resources of the scene. Once the new scene is loaded and generated, a new folder located at | ||
*"`workspacePath`/scenes/`sceneName`"* is created. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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. In case the folders already exists (in other words, if the scene already exists) | ||
then the operation is aborted. | ||
|
||
## Renaming paths in loaders in sources | ||
Paths to scenes being loaded in the code must have their paths updated. | ||
|
||
For example: | ||
```typescript | ||
const rootUrl = "./scenes/oldName/"; | ||
|
||
SceneLoader.Append(rootUrl, "scene.babylon", this.scene, () => { | ||
... | ||
}); | ||
``` | ||
|
||
should be renamed to: | ||
```typescript | ||
const rootUrl = "./scenes/newName/"; | ||
|
||
SceneLoader.Append(rootUrl, "scene.babylon", this.scene, () => { | ||
... | ||
}); | ||
``` |
Binary file renamed
BIN
+412 KB
...create-new-project/create-new-project.png → ...e/create-new-scene/create-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.