Example #1
0
 private void OnDestroy()
 {
     if (_textureResizer != null)
     {
         _textureResizer.Dispose();
         _textureResizer = null;
     }
 }
Example #2
0
 public static void ResizeToMultipleOf4All()
 {
     if (EditorUtility.DisplayDialog("Prompt", "Are you sure you want to resize to multiple of 4 at all texture2d? this is maybe time consuming!", "Yes", "No"))
     {
         List <TextrueResizeFeedback> feedbacks = null;
         TimeSpan timeSpan = ExecutionInTimeMonitor(() =>
         {
             TextureResizer resizer = new TextureResizer();
             feedbacks = resizer.ResizeToMultipleOf4();
             resizer.Dispose();
         });
         TextrueResizeFeedbackWindow.OpenWindow(feedbacks, timeSpan);
     }
 }