Play
Playing the level
Play and Pause are in the top bar.
| Button | Action |
|---|---|
| Play | Starts and stops Play. Or use the hotkey CtrlP |
| Pause | Pauses Play |
A floating RAPTOR window hides during Play and returns when Play stops. A docked one shows the game in a Game tab beside it. Editing is disabled during Play.
The built-in player
In a scene with no camera or with a player start, Play uses the built-in first-person player.
| Control | Action |
|---|---|
| W A S D | Moves |
| Looks around | |
| Shift | Runs |
| Space | Jumps |
| Ctrl or C | Crouches |
| F | Flies |
| Esc | Frees the cursor |
Where it starts
The built-in player starts at the first of these that applies:
- The scene's player start. Place one with the Logic tool's Player mode.
- The 3D view's camera position.
- The world origin.
Player settings
Open Settings → Play → Player.
| Setting | Effect |
|---|---|
| Use built-in player | Turns the built-in player on or off |
| Walk speed | How fast the player walks, in metres per second |
| Mouse sensitivity | How fast the view turns, in degrees per pixel |
Eye height, body radius and the player prefab are in Edit → Project Settings → RAPTOR → Player.
Playing as your own character
Play can use your own character instead of the built-in player.
Add your character
Add your character and its camera to the scene.
Turn the built-in player off
Remove the scene's player start, or turn off Use built-in player. A player start runs the built-in player even when the scene has a camera.
Play
Press Play. The scene runs as it is.
To let Logic freeze, teleport and respawn your character, see Your own character.
Instant Play
Settings → Play → Play mode → Instant Play, off at first.
Instant Play starts Play without reloading scripts. Static values in your own scripts are kept between plays; turn it off if a script of yours expects a fresh start. The scene still starts fresh every time.
It is a project setting: Unity keeps it in Edit → Project Settings → Editor → Enter Play Mode Settings, so it holds for everyone who opens the project. RAPTOR never turns it on by itself.
- On sets Reload Scene only and remembers the setting the project had.
- Off puts that setting back.
- The switch is greyed during Play.
After you edit a script, Unity still compiles it once. Instant Play only skips the reload each time you press Play. If another asset misbehaves on the second Play, turn Instant Play off.