예제 #1
0
        public static bool OnOpenAsset(int instanceId, int line)
        {
            //HACK: using the selection instead of the instance ID since this hook is not reliable
            var obj = Selection.activeObject;

            if (obj is UTProject)
            {
                var window = UTinyProjectWindow.OpenAndShow();
                window.SetTabType(UTinyProjectWindow.TabType.Settings);
                UTinyEditorApplication.LoadProject(AssetDatabase.GetAssetPath(obj));
                return(true);
            }
            return(false);
        }
 public static void RepaintAllWindows()
 {
     UTinyProjectWindow.RepaintAll();
     UTinyInspector.RepaintAll();
     UTinyHierarchyWindow.RepaintAll();
 }