Author : Timo Naskali

Extending A Base Class If you want to create a new drawer for an asset type Unity Object, you can derive from one of two base classes that implements the IAssetDrawer interface. Asset type Unity Objects refer to Unity Objects that cannot exist in the scene, that is all Unity Objects except Components and GameObjects. ..

Read more

What is Debug Mode+? When Debug Mode+ is active, all components and class members are shown in inspector view. This includes: All non-serialized fields. All fields containing the HideInInspector attribute. All properties. All methods. All hidden components (when Debug Mode+ has been enabled for the whole view using the view menu). Previously unsupported types: dictionaries, ..

Read more

Power Inspector can be used to inspect the static class members of any class. To view the static members of a drawer target, open the expanded context menu for the drawer, and select the menu item Inspect X Static Members (with X replaced by the class name). Alternatively you can search for an arbitrary class and lists ..

Read more

In Power Inspector you can gain access to several features not found in the default inspector, such as Copy and Paste, and Reset, through context menus. Context menus can be opened for pretty much all drawers, whether they represent class members, components or GameObjects. Opening The Context Menu To open the context menu for a drawer, ..

Read more

Display Any Member With Power Inspector the objective has been to be able to display anything you can think to throw at it. Members That Power Inspector Can Display: Fields Serialized fields. Non-serialized fields. Fields with the readonly modifier. Static Fields. In Debug Mode+: fields with the HideInInspector attribute. Properties Auto-implemented properties. Properties with asymmetric ..

Read more

It is possible to reset the value of any drawer target to its default state via the context menu, or by pressing the backspace button on your keyboard with the drawer selected. This works not only with drawers representing simple types, but everything else too, including datasets, components, assets, asset importers, and Ga..

Read more

Copy Anything It’s possible to copy the value of any drawer targets via the right-click context menu, or using the keyboard shortcut Ctrl + C (Cmd + C on macOS). This not only works with drawers representing simple types, but also with complex datasets, Unity Object references, Components, Assets and even GameObjects. Paste Anywhere A copied value ..

Read more

Power Inspector completely changes how the prefix label column width is determined. It is no longer just a simple percentage portion of the total width of the inspector view, like in the default inspector, but is individually adjustable. Automatic Width Optimization By default, whenever the contents of an Inspector View in Power Inspector are changed, ..

Read more

Extending A Base Class If you want to create a new drawer for a component, you can derive from one of two base classes that implements the IComponentDrawer interface. 1. ComponentDrawer Extend ComponentDrawer if an Editor is not used for drawing the class members of the Component. This gives you the most power to customize ..

Read more

Power Inspector uses the object pool pattern, reusing existing instances of drawers to reduce the amount of garbage generated. For this reason, when creating your own drawers, you’ll need to be careful that they are reverted back to their default states when they are disposed in the pool. Dispose method When drawers instances are placed ..

Read more