Skip to content

Commit 1236401

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.4] [VFX] Setup a minimum size for the point cache bake tool window
1 parent 3fddc37 commit 1236401

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Packages/com.unity.visualeffectgraph/Editor/Utilities/pCache/BakeTool/PointCacheBakeTool.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
31
using UnityEngine;
42

53
namespace UnityEditor.Experimental.VFX.Utility
64
{
75
partial class PointCacheBakeTool : EditorWindow
86
{
7+
static readonly Vector2 kMinSize = new Vector2(310f, 210f);
8+
99
[MenuItem("Window/Visual Effects/Utilities/Point Cache Bake Tool", false, 3012)]
1010
static void OpenWindow()
1111
{
12-
GetWindow<PointCacheBakeTool>();
12+
var window = GetWindow<PointCacheBakeTool>();
13+
window.minSize = kMinSize;
14+
window.titleContent = Contents.title;
1315
}
1416

1517
public enum BakeMode
@@ -22,7 +24,6 @@ public enum BakeMode
2224

2325
private void OnGUI()
2426
{
25-
titleContent = Contents.title;
2627
mode = (BakeMode)EditorGUILayout.EnumPopup(Contents.mode, mode);
2728
switch (mode)
2829
{

0 commit comments

Comments
 (0)