Documentation
Search…
New Scene Wizard
The New Scene Wizard will add a new scene to your project based on an existing scene, or using a blank template scene.

Accessing The Wizard

The New Scene Wizard requires that one of your game scenes with either a GameManager or SceneConfig object is open in the editor so that it can determine which game to install the content into.
The New Scene Wizard can be opened by clicking Tools in the menu bar, and selecting AnyRPG > Wizard > New Scene Wizard.

Options

Name
Description
Game Name
The name of the game. This will show on the main menu screen.The name of the game in your Unity project to install the template content in. This will be automatically filled in if you have any scene with the GameManager or SceneConfig prefabs open.
Scene Name
The file name of the new scene. This will also show as the title for the minimap when that scene is open.
Copy Existing Scene
If this option is not chosen, the scene will be based on a blank template with only a large flat plane for the player to move around on. If this option is chosen, you can select an existing scene in the project to copy that will be used instead of the blank template scene.
Existing Scene
If Copy Existing Scene is selected, link the scene that should serve as the template for the first scene here.
New Scene Ambient Sounds
An audio clip of ambient environmental sounds to play when the scene is open.
New Scene Music
An audio clip of background music to play when the scene is open.

Content Created

After choosing the appropriate options for the scene, click Create.

Portal Prefab

In the Prefab/Portal folder you can find a portal prefab. This object can be placed in any scene to create a portal that your player can walk through to return to the new scene.

Scriptable Objects

Audio Profiles

If audio files were chosen on the New Game Wizard window, then AudioProfile scriptable objects will exist in the Resources/GameName/AudioProfile folder. These objects contain links to the audio files that were selected.

Scene Node

Scene Node for the new scene can be found in the Resources/GameName/SceneNode folder. The objects contain metadata about the scene, including the name of the scene file on disk, the display name to be used in-game on on the minimap title, and the name of the audio profiles to play when that scene is open.

Scene

The new scene can be found in the GameName/Scenes/SceneName folder. It will contain the SceneConfig object, which is a special object that allows you to press play from that scene, and have the system automatically load the loading scene to perform game initialization. The contents of the scene will either be a blank template level with a plane your character can stand on, or the contents of whatever scene you chose to copy when configuring the New Scene Wizard.

Build Settings

By default, the new scene will have been added to the build settings, which can be access through the File > Build Settings... option from the Unity editor menu bar.

Next Steps

Scene Cleanup

If you copied a demo scene from a Unity package, you will likely have to clean up the scene so that it works properly. Many demo scenes come with a simple player and camera. Since AnyRPG has a camera and a player, you will likely need to remove these types of objects from the scene.

Default Spawn Location

By default, the player will spawn at the world origin (0,0,0). To make the player spawn at a location of your choosing, search your project hierarchy for the DefaultSpawnLocation prefab and drag it into the scene where you want the player to spawn. Rotate the DefaultSpawnLocation prefab so the forward (z) axis is facing the direction you want the player facing when they spawn.

Add A Portal To Load The Scene

Decide what other scenes the player should be able to travel to this scene from and add portals to them. The New Scene Wizard created a portal prefab to use, so find it and drag it into the other scene(s).
Copy link
On this page
Accessing The Wizard
Options
Content Created
Portal Prefab
Scriptable Objects
Scene
Build Settings
Next Steps
Scene Cleanup
Default Spawn Location
Add A Portal To Load The Scene