0.4.0: Added double-click open to Favorites and History
This commit is contained in:
parent
9b73200c73
commit
d35a79faf1
6 changed files with 59 additions and 5 deletions
|
|
@ -60,9 +60,16 @@ namespace Game.NavigationTool.Editor.History
|
|||
|
||||
if (obj != null)
|
||||
{
|
||||
HistoryListPostProcess.IgnoreNextSelectionChange();
|
||||
Selection.activeObject = obj;
|
||||
EditorGUIUtility.PingObject(obj);
|
||||
if (HistoryGUIUtility.isDoubleClick)
|
||||
{
|
||||
AssetDatabase.OpenAsset(obj);
|
||||
}
|
||||
else
|
||||
{
|
||||
HistoryListPostProcess.IgnoreNextSelectionChange();
|
||||
Selection.activeObject = obj;
|
||||
EditorGUIUtility.PingObject(obj);
|
||||
}
|
||||
}
|
||||
|
||||
HistoryGUIUtility.Used();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue