Unity C# String 与 Base64 互转 #region 字符串转Base64 string base64 = ""; string txt = "DannySmith 测试文本"; byte[] myByte = System.Text.Encoding.UTF8.GetBytes