Readability is improved by the code being rendered with multi-colored syntax highlighting.
You can easily see on which lines the code shown is with the addition of line numbering.
Open At Line
Double-click a line number, or right-click a line and select the context menu item “Open At Line X” (where X is the line number in question), to open the script file in your script editor and instantly jump to the line in question.
Compact Tab Character
The width of the tab character has been reduced, so that you can see more of your code simultaneously.
Word Wrapping Disabled
Readability is further improved thanks to word-wrapping being disabled.
Large Code File Support
Even script files with thousands of lines can be shown in full.
In-Inspector Code Editing
While the focus of the script drawer is just enabling quick and effective previewing of your script assets, it does also enable making quick edits to your code right inside the inspector view. To edit your script asset, follow these steps:
- Select the line of code you want to edit.
- Click the Edit Mode button in the header toolbar, or press the F2 key on your keyboard to start editing the line.
- Make your changes to the code line.
- Click the Edit Mode button again, or press the Return key on your keyboard to stop editing the line.
- A new Changes button should now also be located on the header toolbar. Click this button, and from the context menu that opens, select “Save Changes”.
Smart Line Count Display
If you mouseover the header of the script drawer, the line count for the current script asset is displayed, with empty lines and lines containing only comments ignored.
The editor utilizes multi-threading when generating syntax highlighting for your code assets. This helps ensure that you will experience no slowdowns even when moving rapidly through many large script assets.
Also to make sure that the inspector can operate smoothly, even when working with scripts containing thousands of lines of code, only the code lines that are actually visible at any given time are rendered.