Exemple #1
0
    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);
    }