File tree Expand file tree Collapse file tree
Packages/com.unity.visualeffectgraph/Editor/Utilities/pCache/BakeTool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System . Collections ;
2- using System . Collections . Generic ;
31using UnityEngine ;
42
53namespace 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 {
You can’t perform that action at this time.
0 commit comments