Пример #1
0
        /// <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);
        }
Пример #2
0
 public static void Resizer()
 {
     TextureResizerWindow.OpenWindow();
 }