|
@@ -37,6 +37,8 @@ namespace GitMerge
|
|
|
private Texture2D brokenLogo;
|
|
|
private Texture2D fixedLogo;
|
|
|
|
|
|
+ private const string DockNextTo = "UnityEditor.GameView,UnityEditor.dll";
|
|
|
+
|
|
|
private static void OpenEditor()
|
|
|
{
|
|
|
GetWindow();
|
|
@@ -44,9 +46,10 @@ namespace GitMerge
|
|
|
|
|
|
private static EditorWindow GetWindow()
|
|
|
{
|
|
|
- var window = GetWindow(typeof(GitMergeWindow), false, "GitMerge");
|
|
|
+ var type = Type.GetType(DockNextTo);
|
|
|
+ var window = GetWindow<GitMergeWindow>(type);
|
|
|
+ window.titleContent = new GUIContent("Git Merge", EditorGUIUtility.IconContent("TreeEditor.Distribution On").image);
|
|
|
window.autoRepaintOnSceneChange = true;
|
|
|
- window.minSize = new Vector2(500, 100);
|
|
|
return window;
|
|
|
}
|
|
|
|
|
@@ -253,9 +256,9 @@ namespace GitMerge
|
|
|
{
|
|
|
var assetType = asset.GetType();
|
|
|
return assetType == typeof(GameObject) ||
|
|
|
-#if UNITY_2022_3_OR_NEWER
|
|
|
- assetType == typeof(BrokenPrefabAsset) ||
|
|
|
-#endif
|
|
|
+// #if UNITY_2022_3_OR_NEWER
|
|
|
+// assetType == typeof(BrokenPrefabAsset) ||
|
|
|
+// #endif
|
|
|
assetType == typeof(DefaultAsset);
|
|
|
}
|
|
|
|