Dispose() public method

public Dispose ( ) : void
return void
Beispiel #1
0
 private void DisposeApplyImageTask(ApplyImageTask task)
 {
     task.mats.ForEach(material => {
         Destroy(material.mainTexture);
         material.mainTexture = null;
         Destroy(material);
         material = null;
     });
     task.Dispose();
 }
 private void DisposeApplyImageTask(ApplyImageTask task)
 {
     task.mats.ForEach(material => {
         Destroy(material.mainTexture);
         material.mainTexture = null;
         Destroy (material);
         material = null;
     });
     task.Dispose ();
 }