Author : Timo Naskali

Extending A Base Class For most drawer that represent class members, you have to base classes you can inherit from that implement the IFieldDrawer interface. 1. PrefixControlComboDrawer For simple class members that don’t have any member drawers and consist only of a prefix label and a single control, you can derive from PrefixControlComboDrawer. Example: ToggleDrawer ..

Read more

You can add new context menu items to Unity Object targets just like you always have using the MenuItemAttribute. If you would like to add new items to the context menus of other drawers, you can do so by subscribing to the OnMenuOpening callback in the ContextMenuUtility class. This gets called after the context menu ..

Read more

Basic Requirements of a Drawer When creating your own drawer for use in Power Inspector, your class needs to fulfill the following requirements: The class should be decorated with an attribute that derives from DrawerForBase attribute. This lets Power Inspector know what elements inside the inspector should be handled by the drawer. The class should ..

Read more

With development mode enabled, if you right-click a drawer while holding down the ctrl key (cmd key on macOS), a new group called “Debugging” will appear in the context menu. This menu will contain a number of additional menu items that can be useful when you’re creating new drawers. The first item, “Debugging/Edit [NameOfDrawer].cs”, can ..

Read more

Many assertions, console messages and some functionality is stripped away from Power Inspector’s code, unless a special development mode is 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. ..

Read more

Keyboard navigation within the Power Inspector window has been improved in various ways compared to the default inspector. Arrow Key Navigation The arrow keys on your keyboard now move focus in a more intuitive manner, in the matching direction. For example, the up arrow moves focus to the drawer that is located above the drawer ..

Read more

The Split View button found at the right edge of the Power Inspector Toolbar can be used to split the Inspector Drawer into two separate views. This can be useful for multi-tasking purposes, for example if you want to compare or migrate data between two different targets. When the Power Inspector view is split, the ..

Read more

The search box (also known as the filter field) can be used to input keywords, which are then used to filter which drawers within the viewport are shown. There are several different methods of searching, which you can specify by adding a special prefix before the search keyword. Search By Label Use the prefix “L:” ..

Read more

Clicking the view menu button on the toolbar opens up a context menu which allows quickly changing options related to what and how data is shown in the Power Inspector view. List of View Menu Items The contents of the view menu can dynamically change based on what targets are currently shown inside the inspector ..

Read more

The Toolbar contains all-new back and forward buttons that allow you to quickly navigate through the history of inspected targets. Navigation History Right-clicking the back or the forward button opens up a context menu containing the full listing of targets in that direction. This context menu also has a filter field for quickly finding a ..

Read more