timo-sisus / Power-Inspector

Report bugs and offer improvement ideas for Power Inspector.
http://u3d.as/1sNc
8 stars 0 forks source link

Pinging not seen if window is not visible #2

Closed timo-sisus closed 5 years ago

timo-sisus commented 5 years ago

If you single-click the object reference of an asset, and the Project window is not visible, the user won't be able to see the pinging take place. Same thing with the object reference of a scene object, if the Hierarchy window is not visible.

Expected behaviour: If an instance of a Project/Hierarchy window is found, it should be pushed to the front of its tab group, so that the pinging action can be seen by the user.

Note: Ignore Project/Hierarchy windows that are in the same tab group with the inspector in question.

Note 2: It might be best to make this functionality optional, so that if somebody has other EditorWindows which also could respond to pinging, this feature doesn't push them to the background.

timo-sisus commented 5 years ago

An existing instance of Project / Hierarchy windows will now be set as the active tab in their dock area during pinging, when the following conditions are met:

  1. There are no existing instances of said window that are already visible.
  2. The currently focused window is not docked in the same dock area with the Project / Hierarchy window in question.