02. Developer Mode

  09. Extending Power Inspector No Comments

Many assertions, warning and error messages and debug logging options are stripped away from the Power Inspector code, unless a special development mode has been enabled.

In normal day-to-day use you do not want this mode active, to ensure that Power Inspector runs as fast as possible with minimal garbage generation, and to avoid messages cluttering up your Console window. If however you’re extending Power Inspector by creating new drawers, for example, it can be useful to enable this mode.

Enabling Development Mode

To enable development mode, follow these steps:

  1. Click the context menu icon at the top-right corner of the Power Inspector window while holding down the control key on your keyboard.
  2. Click the item Developer Mode > Enabled.

Power Inspector will add two new items to the Scripting Define Symbols list in your Player settings: “DEV_MODE” and “PI_ASSERTATIONS”.
Your scripts will then be recompiled, this time with new developer-only code included.

Disabling Development Mode

To disable development mode, repeat the same steps as when enabling development mode.