Find and fix errors with the Console window
Use the Unity Spark Console window to read log messages and errors from your game and the editor, and ask the assistant to fix them.
Read time 2 minutesLast updated 3 hours ago
The Console window shows the log messages and runtime errors that your game's scripts produce, and errors from the editor itself. Use it to find out what went wrong when your game doesn't behave as expected. The assistant can read the same errors and fix them for you.
Open the Console window
In the Editor layout, the Console window is a tab under the Scene view, next to the Project window.
To add the Console window to another layout:
- Select Add window (+) in any window group.
- Select Console, or search for it in the Search windows field.
For more information, refer to Unity Spark windows reference.
Read logs and errors
Unity Spark captures console logs and runtime errors when your scripts run. Scripts run as soon as you enter Play mode, so check the Console window after you play your game.
For a description of each control, refer to Console window reference.
Fix errors with the assistant
To ask the assistant to fix the errors from your last Play mode session:
- Stop Play mode.
- In the Chat window, enter .
/fix-errors
The assistant diagnoses and resolves the errors from your most recent Play mode session, then enters Play mode to verify the fixes. For more information, refer to Built-in slash commands.
The assistant also reads console output when it playtests your game, and bug reports can include it. For more information, refer to Introduction to test and debug tools in Unity Spark.