Ask the live preview for a value
PREVIEW CONSOLE
There are two different places to read. Output & Diagnostics holds a running history. The small console inside Runtime Preview answers a command about the current game.
The expanded test console under the running game. Its result line shows tickets = 2.0.
01. Start a game preview or use Test Scene. In Runtime Preview select Show Debug Console. The command field appears beneath its result line.
02. Type each line below separately and submit it. get reads a shared game variable. set changes it in the current preview.
get tickets
set tickets 2
get ticketsThis run started at 0.0 and ended at 2.0. Both 2 and 2.0 represent a numeric fare. A missing name displays <undefined>. The console reads shared runtime variables. For a function’s local price, use the PCA Script watch panel.
03. Select Minimize Debug Console before testing keyboard movement or pressing a game button. It releases keyboard focus from the command field.
Setting a value is a shortcut for diagnosing the next step. After the comparison works, earn the tickets through normal gameplay and repeat the click. This checks the part the shortcut bypassed.
0.86.4.3 / Read a cue trace and camera diagnostics > Page 33
