Unity3D 资源管理文件加密.docxVIP

  • 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 URL WWW www = new WWW (url); // Wait for download to complete yield return www; // Get the byte data byte[] encryptedData = www.bytes; // Load the TextAsset object byte[] decryptedData = YourDecryptionMethod(encryptedData); // Create an AssetBun

文档评论(0)

1亿VIP精品文档

相关文档