04. View Menu

  04. Features No Comments

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 view.
Here are some of the menu items you might find in the view menu:


Debug Mode+

Off (Default)

Disable Debug Mode+ for the inspector view. Hidden components are not shown and class members are only shown when they pass certain criteria.

On

Enable Debug Mode+ for the inspector view. All Components and class members are shown in the inspector view, including non-serialized ones and ones hidden using attributes or hide flags. Only items with the Deprecated attribute remain hidden (to avoid exceptions being thrown).
Note that when Debug Mode+ is activated using this menu item, it will remain active for the entire view, and remains active even if the inspected targets are changed.


Multi-Edit

Merged (Default)

Set multi-editing mode to merged. When multiple targets of the same type are contained in the current selection, their data is merged together, so that they can be edited simultaneously.
This is how the default inspector works.

Stacked

Set multi-editing mode to stacked. When multiple targets are selected for inspecting, they will be listed separately, one after the other. This might be a useful mode if you want to compare and/or migrate data between multiple targets.


Component Unfolding

Unrestricted (Default)

Sets component unfolding mode to unrestricted. Multiple components can be shown unfolded simultaneously.
This is how the default Inspector works.

One At A Time

Sets component unfolding mode to one at a time. Only one component can be shown unfolded at any given time.


Hidden Components

Hide (Default)

Components that have been hidden using HideFlags are not shown in the inspector view. This is how the default Inspector window works.

Show

Components that have been hidden using HideFlags are still shown in the inspector view. They will be grayed-out to indicate that they are hidden.


Script Field

Hide (Default)

Don’t display a reference to the script asset of MonoBehaviours and ScriptableObjects as their first field.
You can still right click the header of such targets and select “Edit Script” to start editing their script asset or “Select Script” to select their script asset in the Project window.

Show

Display reference to the script asset of MonoBehaviours and ScriptableObjects as their first field.
This is how the default inspector works.


Field Visibility

Serialized Only (Default)

Fields that Unity can’t serialize are not shown in the inspector view, even if public, unless explicitly exposed using attributes like ShowInInspector.
This is similar to how the default inspector works.

All Public

All public fields fields are shown, whether or not Unity can serialize them, unless explicitly hidden using attributes such as HideInInspector.
Non-public fields are not shown unless explicitly exposed using attributes such as ShowInInspector.


Property Visibility

Attribute-Exposed Only (Default)

Only show properties explicitly exposed using attributes like ShowInInspector.

Auto-Generated Public

All public auto-generated properties are shown, unless explicitly hidden using attributes such as HideInInspector.
Other properties are not shown unless explicitly exposed with attributes such as ShowInInspector.

All Public

All public properties are shown, unless explicitly hidden using attributes such as HideInInspector.


Method Visibility

Attribute-Exposed Only (Default)

Only show methods explicitly exposed using attributes such as ShowInInspector.

Context Menu

All methods with the ContextMenu attribute are shown, unless explicitly hidden using attributes such as HideInInspector. This includes static methods.
Other methods are not shown unless explicitly exposed with attributes such as ShowInInspector.

All Public

All public methods are shown, unless explicitly hidden using attributes such as HideInInspector.
Non-public methods are only shown if explicitly exposed using attributes such as ShowInInspector.


Preview Area

Minimized

The preview area always starts off minimized when the inspected targets change.
You will always have to manually expand the preview area by clicking it.

Dynamic (Default)

When inspected targets change, the preview area starts off minimized most of the time, except when a preview offers information that users are likely to find useful – such as a visual preview of a texture or a model – then it starts off maximized instead.
You can still always manually expand or minimize the preview area by clicking it.

Manual

The preview area remains open or minimized even when inspected targets are changed.
The user always has to manually change the minimized state of the preview area by clicking it.
This is similar to how the default inspector works.


Opening The Extended View Menu

You can open the extended view menu by clicking the view menu button while holding down the control key. Alternatively, you can right-click the view menu button. The extended view menu contains all the same menu items as the normal view menu, but also includes some additional ones.

Additional Items in the Extended View Menu


EditorWindow Debugger

this (PowerInspectorWindow)

Shows the state data this Power Inspector window in another Power Inspector window that is opened. A new window is opened so that the state of the current window is does not get altered from the EditorWindow debugger feature being used.

Other Entries

Shows the state data of the selected currently open EditorWindow in the inspector.