In Play
Logic runs in Play and in a built game, for one player on one machine. No scene setup is needed.
What works
These work in Play and in a built game:
| Term | Meaning |
|---|---|
| Graphs | Flow, values, variables, timers and messages |
| Volumes | Enter, leave, occupied and emptied events, for players and loose physics bodies |
| Buttons | Using a Button by looking at it and pressing E, or a gamepad's west button with the Input System package |
| Players | Health, damage, heal, kill, freeze, teleport and respawn. A killed player respawns on a Player spawn Marker after 3 s by default |
| Game | Match, rounds, teams, score and timers |
| Moving parts | Moving, turning and carrying players |
| Display | Screens and on-screen text |
| Effects | Sounds, effects, glow and screen shake |
| Objects | Health, explosions and hits. Walls block explosions |
Limits
Logic in RAPTOR 1.0.0 has these limits:
- No networking. A networked game needs its own Logic host. See Your own Logic host.
- The on-screen display is plain text.
- Moving parts carry players but do not push them.
- Built games are tested on Windows only.
- Glow shows in a built game even on a material with Emission off. In scenes built into AssetBundles or Addressables it may not, so switch Emission on in that material.
Who plays the level
Logic looks for the player in this order:
- A character registered from code. See Your own character.
- A GameObject tagged
Player. - The main camera, or the character it sits in.
- No player. Graphs still run, and the Console reports that no player was found.
In the editor, a scene with no camera plays with RAPTOR's built-in player. A built game needs your own character in the scene.
The player start placed with the Logic tool's Player mode works in the editor only. Built games respawn players on a Player spawn Marker.
Hidden nodes
The palette hides nodes for systems RAPTOR does not include: items, grabbing, enemies, levers, and doors and wires from other games. Graphs that already use them still load.