/// <summary>写入图片</summary>
public async void WriteTesture(string filePath, Texture2D texture2D, Action complete = null)
{
if (texture2D == null) return;

uint width = (uint)texture2D.width;
uint height = (uint)texture2D.height;

Color32[] array = texture2D.GetPixels32();

await Task.Run(() =>
{
File.WriteAllBytes(filePath, ImageConversion.EncodeArrayToPNG(array, graphicsFormat, width, height));
});

if (complete != null) complete();
}