1
This commit is contained in:
20
Unity/Scripts/AssetBundle/Base64Parser.cs
Normal file
20
Unity/Scripts/AssetBundle/Base64Parser.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using System.IO;
|
||||
namespace BITKit
|
||||
{
|
||||
public class Base64Parser : MonoBehaviour
|
||||
{
|
||||
public string path;
|
||||
public string outputPath;
|
||||
public string json;
|
||||
[ContextMenu(nameof(Decompress))]
|
||||
public void Decompress()
|
||||
{
|
||||
var base64 = File.ReadAllText(path);
|
||||
var json = GZipHelper.GZipDecompressString(base64);
|
||||
File.WriteAllText(outputPath, json);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user