Skip to content

Commit

Permalink
CHANGE: Set minSize for UITK InputActionsEditorWindow (ISX-1565) (#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfreire-unity authored Aug 29, 2023
1 parent 81958b2 commit a7763b3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ internal class InputActionsEditorWindow : EditorWindow
private string m_AssetPath;
private string m_AssetJson;
private bool m_IsDirty;
static readonly Vector2 k_MinWindowSize = new Vector2(650, 450);

[OnOpenAsset]
public static bool OpenAsset(int instanceId, int line)
Expand Down Expand Up @@ -61,6 +62,7 @@ public static bool OpenAsset(int instanceId, int line)
window.m_IsDirty = false;
window.m_AssetId = instanceId;
window.titleContent = new GUIContent("Input Actions Editor");
window.minSize = k_MinWindowSize;
window.SetAsset(asset);
window.Show();

Expand Down

0 comments on commit a7763b3

Please sign in to comment.