- 7
- 0
- 约小于1千字
- 约 2页
- 2019-07-14 发布于湖北
- 举报
Unity3D 资源管理文件加密
Posted on 2013年02月26日 by U3d / \o 查看 Unity3D脚本/插件 中的全部文章 Unity3D脚本/插件/被围观 232 次
Unity3D为AssetBundle包加密
Unity允许用户使用AssetBundle.CreateFromMemory从一个 byte[]数组中建立一个AssetBundle的对象。在运行传输解密时,可以用这种加密方法来提高安全性和保护用户建立的资源管理中的内容。
string url = /mygame/assetbundles/assetbundle1.unity3d;IEnumerator Start () {// Start a download of the given URLWWW www = new WWW (url);
// Wait for download to completeyield return www;
// Get the byte databyte[] encryptedData = www.bytes;
// Load the TextAsset objectbyte[] decryptedData = YourDecryptionMethod(encryptedData);
// Create an AssetBun
原创力文档

文档评论(0)