In-Editor Gameplay Feature
Document Summary: Explains how to use the in-editor gameplay feature (seen as "Play Level" and "Play From Here" in the editor.)
Document Changelog: Created by Josh Adams.
A new feature in UE3 is the ability to preview the game without having to leave the editor. There are two ways to do this.
- Select "Build | Play Level"
- Right-click in a viewport, and select "Play From Here"
"Play Level" will start the game normally as if you had run loaded the map, so you will start at a PlayerStart actor (or however your particular game starts up).
Play From Here
"Play From Here" will start the game, but you will be teleported to the location where you right-clicked. This makes it much faster to test a specific part of the map, which can really save time while testing the huge maps of the future!
Modifying gameplay options
Either way you start the in-editor game, if you hold down the Control key, the game will start in spectator mode (assuming your game has a spectator mode).
If you need to modify the URL options that are sent to the game, you can add options to the Engine .ini file. You would set the "InEditorGameURLOptions" property in the "Editor.EditorEngine" section. For example:
A new feature was added in the April 2007 QA-Approved Build to leave notes in PIE. Simply enter the following to leave a note:
=dn this is mynote text=
When you run the game in the editor, it makes a backup of the level in the Autosaves directory, to a file called InEditorGame.war. This way, if the game crashes (which will crash the editor), you have an up-to-date backup in case of calamity.