Hazel

The Console

The Console shows the messages the editor and your game write as they run: what loaded, what was saved, warnings, errors, and anything your scripts log. When something does not work, look here first.

It is a tab in the bottom panel (Ctrl+Space opens the panel), and in the Scripting workspace it sits under the Hierarchy.

The Console tab with the level pills and their counts along the top

Reading messages

Each line has a level, shown by its colour:

LevelMeans
InfoSomething happened, for your information
SuccessSomething finished as it should
WarnSomething looks wrong but the editor carried on
ErrorSomething failed

A message that repeats straight after itself is folded into one line rather than filling the Console.

A long message is cut off at the panel's edge; click it to read the whole thing.

Narrowing it down

Along the top of the Console:

ControlWhat it does
Level pillsInfo, Success, Warn and Error, each with a count. Click one to hide or show that level.
Filter messagesShow only lines containing what you type
CategoriesPick which sources to show. It reads All categories until you hide some; Show all brings them back.
Shown / totalHow many lines pass your filters, out of how many there are
CopyCopy what is shown to the clipboard
ClearEmpty the Console
FollowKeep scrolling to the newest line as messages arrive

Details of one message

Click a line to open its details on the right:

  • The full text, with a Copy button.
  • A chip for each object the message mentions. Click a chip to select that object.
  • How many times the message was seen, and the frame it arrived on.

Click the line again, or the x, to close the details.

Messages from your game

While your game is playing, everything it logs, including your scripts' output, appears in the editor's Console under the Runtime category. When the game starts, the Console says it has connected. See Playing your game.

Commands

The bar at the bottom of the Console takes commands. Type / to see them:

CommandWhat it does
/clearEmpty the Console
/helpList the commands

While the suggestion list is open, Tab completes, Up and Down choose, and Esc closes it.

How much it keeps

The Console keeps the most recent 100 messages by default. Change this with Console Log Limit under Settings > Editor > General > Developer.