Collection Drawer

  05. Enhanced Drawers No Comments

Power Inspector contains a custom-built drawer for collections that introduces multiple enhancements over the way they used to work in the default inspector.

Drag & Drop Member Reordering


You can reorder members inside a collection by simply dragging them around.

Dragging can be initiated by pressing the left mouse button down over the prefix label of a member, or the drag bar control found next to the prefix label.

Cross-Collection Drag & Drop

It is also possible to drag members from one collection to another.

This even works between many collections of different types, as long as the member type is the same. So you could for example drag a value from an array to a list, and then to a HashSet.

Member Count Display

The number of elements contained inside a collection is displayed on the header of the collection. This can be seen even when the collection is folded.

Supported Collection Types

The following collection types are handled by the CollectionDrawer and can be displayed in Power Inspector with all the enhancements listed above:

  • Array ( T[] )
  • 2D Array ( T[,] )
  • 3D Array ( T[,,] )
  • Jagged Array ( T[][], T[][][] etc… )
  • List<T>
  • IList<T>
  • IList
  • Dictionary<T,K>
  • IDictionary
  • HashSet<T>