27. Middle-Mouse Pinging

  04. Features No Comments

Pinging refers to the displaying and highlighting of an Unity Object either in the hierarchy of project view. This occurs for example when you click an Object reference field.

In Power Inspector you can also ping Objects by middle-clicking headers of Unity Object drawers inside the inspector view. What Object gets pinged and in which view depends on the context:

  • Middle-clicking the header of an asset causes the asset to be pinged in the project view.
  • Middle-clicking the header of a MonoBehaviour causes the MonoScript asset that defines it to be pinged in the project view.
  • Middle-clicking the header of a prefab instance causes the prefab asset to be pinged in the project view.
  • Middle-clicking the header of a GameObject that is not a prefab or a instance causes the GameObject to be pinged in the hierarchy view.
  • Middle-clicking the header of a component that belongs to a prefab causes the prefab asset to be pinged in the project view.
  • Middle-clicking the header of a component that belongs to a GameObject that is not a prefab causes the GameObject to be pinged in the hierarchy view. This is also true for components on prefab instances.

In addition to Unity Object drawer headers there some other elements that support middle-clicked pinging:

  • Middle-click the preview area causes the previewed target to be pinged.
  • Middle-clicking the header of preview in the preview area causes the target of the preview to be pinged.

 

Note: As a rule of thumb middle-clicking elements inside the inspector view is used for pinging while middle-clicking elements outside the inspector view is used for peeking.