/// <summary> /// 打开窗口 /// </summary> public static void OpenWindow() { TextureResizerWindow window = GetWindow <TextureResizerWindow>(); window.titleContent.image = EditorGUIUtility.IconContent("ContentSizeFitter Icon").image; window.titleContent.text = "Texture Resizer"; window.minSize = window.maxSize = new Vector2(835, 665); }
public static void Resizer() { TextureResizerWindow.OpenWindow(); }