Closed michael811125 closed 1 week ago
原生文件支援内存流的方式,则支援原生文件加解密,那么打包时,可以选择加密。
原生文件加密:
取得解密文本:
EditorSimulate Mode (passed) Host Mode (passed)
原生文件不支援内存流的方式,只能透过 FilePath 进行文件读取,那么在打包时,需要注意不能进行原生文件的加密。
2.2.0版本新增了文件系统,已经完美适配~ 可以参考提交记录: https://github.com/tuyoogame/YooAsset/commit/b0ce14dc0ea56e95f969f461ad5c82ddc5357589
情境为以下:
行为一:
原生文件支援内存流的方式,则支援原生文件加解密,那么打包时,可以选择加密。
原生文件加密:![image](https://github.com/tuyoogame/YooAsset/assets/30960759/c580aa79-0f6a-450f-9074-b1f23d3092fb)
取得解密文本:![image](https://github.com/tuyoogame/YooAsset/assets/30960759/8e20d4e7-f1c5-40ad-aa12-f7ba6fb41055)
EditorSimulate Mode (passed) Host Mode (passed)
行为二:
原生文件不支援内存流的方式,只能透过 FilePath 进行文件读取,那么在打包时,需要注意不能进行原生文件的加密。