Beispiel #1
0
 public static void SetupLogStickyCallback()
 {
     ConsoleWindowBridge.SetEntryDoubleClickedDelegate((file, entryInstanceId) =>
     {
         string[] pathAndGuid = file.Split('@');
         VseWindow window     = VseWindow.OpenVseAssetInWindow(pathAndGuid[0]);
         if (GUID.TryParse(pathAndGuid[1], out GUID guid))
         {
             window.Store?.Dispatch(new PanToNodeAction(guid));
         }
     });
 }
Beispiel #2
0
        public static VseWindow OpenVseAssetInWindow(string path)
        {
            var asset = AssetDatabase.LoadAssetAtPath <VSGraphAssetModel>(path);

            if (asset == null)
            {
                return(null);
            }

            VseWindow vseWindow = ShowVsEditorWindow();

            vseWindow.SetCurrentSelection(path, OpenMode.OpenAndFocus);

            return(vseWindow);
        }