Script Drawer

  05. Enhanced Drawers No Comments

The drawer used in Power Inspector for your script assets improve upon the Editor in the Default Inspector in various ways.

Syntax Highlighting

Readability is improved by the code being rendered with multi-colored syntax highlighting.

Line Numbering

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:

  1. Select the line of code you want to edit.
  2. Click the Edit Mode button in the header toolbar, or press the F2 key on your keyboard to start editing the line.
  3. Make your changes to the code line.
  4. Click the Edit Mode button again, or press the Return key on your keyboard to stop editing the line.
  5. 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.