Comment on page
New Game Wizard
The New Game Wizard will add a new game to your project and fully configure all the minimally required directories, scriptable objects, prefabs and scenes so it is ready to play immediately.
There are 2 new game wizards included with AnyRPG; an UMA version, and a non-UMA version. They both function the same, except the UMA version installs the UMA_GLIB prefab (required for UMA to work properly), and UMA models for the player instead of mecanim models.
The standard New Game Wizard can be opened by clicking Tools in the menu bar, and selecting AnyRPG > Wizard > New Game Wizard.
The UMA New Game Wizard can be opened by clicking Tools in the menu bar, and selecting AnyRPG > Wizard > UMA > New Game Wizard.
After choosing the appropriate options for your game, click Create.
A folder structure similar to what is shown in the picture below will have been created.
In the Prefab/GameManager folder you can find 3 prefabs. The purpose of each is discussed below.
The Game Manager prefab contains all of the scripts necessary to run the game. It also contains the global game configuration in the SystemConfigurationManager, which you can edit to customize global options for the game.
The Game Manager should only ever exist in the game loading scene, which the wizard will have setup already.
The Scene Config prefab is a special prefab that can go in any scene to allow you to press the Play button in Unity and have the game load correctly.
If the UMA version of the wizard was used, UMA_GLIB prefab will have been installed. The UMA Global Library is required for the Unity Multipurpose Avatar system to function properly, and will have already been placed in the game loading scene by the wizard.
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 first scene.
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 Nodes for the Main Menu and First Scene can be found in the Resources/GameName/SceneNode folder. The objects contain metadata about the 2 scenes, 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.
System Effects can be found in the Resources/GameName/AbilityEffect/System folder. These are special visual and audio effects activated by the system when the player dies, when the player gains a level, and when a dead enemy has loot that can be collected. The Game manager will have been automatically configured to use these effects.
Unit profiles are character definitions and can be found in the Resources/GameName/UnitProfile/Player folder. By default, definitions for male and female characters will have been created. If the UMA version of the wizard was used, the installed unit profiles will be UMA profiles instead of mecanim profiles.
Depending on which other options were selected under the Common RPG Building Blocks subheading on the New Game Wizard screen, you will find the appropriate scriptable objects in subfolders of the Resources/GameName folder.
The loading scene is a special scene with the sole purpose of setting the Game Manager and UMA Global Library to DontDestroyOnLoad so they persist through any scene changes, and then running the startup process of the Game Manager to initialize the data factory and UI, before loading the main menu.
The first scene is the default scene that will load when a new game is started. 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 Game Wizard.
By default, both the loading scene and the first 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.
After the wizard completes running, the First Scene will be open. Press the Play button in the Unity editor to start playing.