The script console allow developers to view script log messages in the Sansar client without having to use a helper logging script or commands.
![]() |
The Script Console. |
Accessing the Script Console
The script console is only accessible while visiting experiences that you have created. While visiting your created experience, press CTRL+D to toggle the console on and off.
Note:
|
Using the Script Console
Information on the Script Console
The Script Console pulls log messages and reports the messages in color according to LogLevel:
- Info - Basic informational messages, which are show in white.
- Error - Error messages, which are shown in red.
- Warning - Warning messages, which are show in yellow
The Script Console currently shows the following information:
- Timestamp - The local time at which the first occurrence of the message happens.
- Occurrence - The number of times in a row the message/tag combo appears.
- Tags - Any user defined tags
- Message - Any user defined messages
Navigating the Script Console
On the upper left side of the Script Console panel, there are three main tabs to filter through log messages:
- The Output tab - Shows all LogLevel messages: basic informational, error, and warning message. The Output tab shows the following data: <timestamp> <occurrences> <tags> <message>
- The Errors tab - Shows only error messages. The Errors tab shows the following data: <timestamp> <tags> <message>
- The Warnings tab - Shows only warning messages. The Warnings tab shows the following data: <timestamp> <tags> <message>
On the right side of the Script Console panel, there are a few additional options that you can trigger:
- The Clear button - Clears messages from the active tab of the Script Console.
- The Scroll Lock checkbox - Toggles scrolling to the latest message logged in the Script Console On or Off.
0 Comments