Unity Basics
  • Welcome
  • Getting Started with Unity Software
  • Helpful Shortcuts
  • The Unity Software Interface
    • The Default Interface
    • The Windows (Tabs)
      • Hierarchy Window
      • Scene Window
      • Project Window
      • Inspector Window
      • Game Window
      • Console Window
    • Other Layouts
      • Create a Custom Layout
  • Create
    • Creating Game Objects
      • 3D Primitives
      • Creating Game Objects in the Editor
      • Spawning Objects
      • Unhiding/Hiding Objects During Gameplay
      • Parenting
    • Creating Assets
    • Creating Components and Scripts
      • Adding Components in the Inspector
      • Creating Custom Components and Scripts
    • Creating Prefabs
  • Select and Update
    • General Selection
    • Search and Focus
    • Updating Game Objects
      • Updating Game Objects in the Editor
      • Updating Prefabs
    • Updating Assets
    • Updating Components
      • Update Components in the Inspector
      • Accessing Components Through Scripts
  • Delete
    • Deleting Game Objects
      • Deleting and Disabling Objects in the Editor
      • Using the Destroy() Function
    • Deleting Components and Scripts
      • Disabling and Removing Components in the Editor
      • Disabling and Removing Components During Gameplay
  • Translate, Rotate, and Scale
    • Intro to Transforms
    • Handy Transform Shortcuts
    • Translate
      • Positioning Game Objects in the Editor
      • Updating Position Through Script Code
      • Using the Transform.Translate() Function
    • Rotate
      • Rotating Game Objects in the Editor
      • Updating Rotation Through Script Code
      • Using the Transform.Rotate() Function
    • Scale
      • Resizing/Scaling Objects in the Editor
      • Updating Scale Through Script Code
    • Controlling Speed
    • Common Issues with Transforms
  • Materials
    • Material Basics
      • Creating and Applying Materials
      • Accessing Materials Through Code
  • Physics
    • Physics Basics
    • Colliders and Triggers
      • Collider Component Overview
      • Accessing Colliders Through Scripts
      • Common Issues: Colliders and Triggers
    • Rigidbody Component
      • Rigidbody Component Overview
      • Accessing the Rigidbody Component Through Scripts
      • Common Issues: Rigidbody Components
    • Common Issues: Physics and Velocity
  • Interaction
    • Interaction Basics
    • Keyboard Controls
    • Mouse Controls
  • Coding Basics
    • Intro to Scripts
    • Variables
    • Conditionals (If / Then / Else)
    • Arrays
    • Loops
    • Functions
Powered by GitBook
On this page
  • Default View
  • Errors
  • Options

Was this helpful?

  1. The Unity Software Interface
  2. The Windows (Tabs)

Console Window

Where you get feedback

PreviousGame WindowNextOther Layouts

Last updated 4 years ago

Was this helpful?

The console provides helpful feedback such as errors, warnings, and messages.

Default View

Note: This is in a shortened window.

Clicking on a message provides more information:

Errors

How to read the error above:

What

Seen in Console Message

Printed message:

This is an example of an error.

What code printed the error:

UnityEngine.Debug.LogError(Object)

Name of the script catching the error:

SampleMessage.cs

Function name within the script:

Update()

File path of the script:

Assets/Scripts/SampleMessage.cs

Line with error or error catch:

18

Options

Clear - Clears messages, warnings, and errors.

Collapse - Similar messages can be collapsed, resulting in one full message and the number of instances to the right. When not collapsed, the full message appears repeatedly.

Clear on Play - When on, past messages are cleared when Play is clicked

Error Pause - When selected, the game will pause when it encounters an error. This helps for errors that aren't big enough to "break" the visuals of the game and might get buried in Console messages.

Editor (Dropdown) - Provides more options about what messages are displayed.

Search - Results will appear and the term will be highlighted in blue. Click the x on the right side of the bar to clear the search.

Count - Number of messages, warnings, and errors. You can toggle these by clicking on the type you want to hide or show.

A clear console
Console showing how each type of console message or "log" appears.
Console with detailed information
Collapse is turned on
Collapse is turned off