public string SaveTexture(Texture2D save) { var bytes = save.EncodeToPNG(); string file = save.name == null ? "defaultName" : save.name; string path = picker.GetExternalDir() + "/" + file + ".png"; File.WriteAllBytes(path, bytes); return(path); }