位置: 编程技术 - 正文

Protecting Content With AssetBundle[Unity]

编辑:rootadmin

推荐整理分享Protecting Content With AssetBundle[Unity],希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

Whilst it is possible to use encryption to secure your Assets as they are being transmitted, once the data is in the hands of the client it is possible to find ways to grab the content from them. For instance, there are tools out there which can record 3D data at the driver level, allowing users to extract models and textures as they are sent to the GPU. For this reason, our general stance is that if users are determined to extract your assets, they will be able to.

However, it is possible for you to use your own data encryption on AssetBundle files if you still want to.

Protecting Content With AssetBundle[Unity]

One way to do this is making use of the TextAsset type to store your data as bytes. You can encrypt your data files and save them with a .bytes extension, which Unity will treat as a TextAsset type. Once imported in the Editor the files as TextAssets can be included in your AssetBundle to be placed in a server. In the client side the AssetBundle would be downloaded and the content decrypted from the bytes stored in the TextAsset. With this method the AssetBundles are not encrypted, but the data stored which is stored as TextAssets is.

An alternative approach is to fully encrypt the AssetBundles from source and then download them using the WWW class. You can give them whatever file extension you like as long as your server serves them up as binary data. Once downloaded you would then use your decryption routine on the data from the .bytes property of your WWW instance to get the decrypted AssetBundle file data and create the AssetBundle from memory using AssetBundle.CreateFromMemory.

The advantage of this latter approach over the first one is that you can use any method (except AssetBundles.LoadFromCacheOrDownload) to transmit your bytes and the data is fully encrypted - for example sockets in a plugin. The drawback is that it won’t be Cached using Unity’s automatic caching. You can in all players except the WebPlayer store the file manually on disk and load it using AssetBundles.CreateFromFile

A third approach would combine the best of both approaches and store an AssetBundle itself as a TextAsset, inside another normal AssetBundles. The unencrypted AssetBundle containing the encrypted one would be cached. The original AssetBundle could then be loaded into memory, decrypted and instantiated usingAssetBundle.CreateFromMemory.

Unity3D图像后处理特效——Fisheye image effect

unity学习之增删查改 unity学习,希望我的博客能给正在学习unity的朋友们带来帮助今天我们来学习在vs中对数据库中的数据进行增删查改,直接来看代码吧封装,方便方法的

慎用 NavMeshObstacle.Carve 在Bake场景的时候,Navigation窗口的Bake页面有一个高度,场景中的导航网通常作为一个平面,当NavMeshObstacle距离小于这个高度时,才会在导航网上挖洞,

标签: Protecting Content With AssetBundle[Unity]

本文链接地址:https://www.jiuchutong.com/biancheng/377293.html 转载请保留说明!

上一篇:Unity3D之Vector3.Dot和Vector3.Cross的使用

下一篇:Unity3D图像后处理特效——Fisheye image effect(unity2d图片调后一层)

  • 自查补缴增值税的会计处理
  • 开农贸市场挣钱吗
  • 设备采购及安装属于工程还是货物
  • 个体工商户网上注销
  • 百度推广服务费一年多少钱
  • 增值税扣完税款还能更改吗
  • 用银行存款上交上月税金会计分录
  • 社保和公积金缴费基数怎么算
  • 资产损失类型有哪些
  • 没有认证方式
  • 营改增后,代扣代缴所得税应当按照含税收入还是不含税收入?
  • 小微企业享受优惠
  • 以旧翻新视频
  • 资产减值损失列示在利润表哪里
  • 子公司评估增值 出售股权
  • 应收票据计入应收账款吗
  • 企业自有固定资产有哪些
  • 预付专利转让费计入什么科目?
  • 接受个人投资现金怎么做账务处理?
  • 制造业增值税加计抵减
  • 申报表b表去哪里申报
  • 应收账款现金折扣计入什么科目
  • 应交增值税未认证怎么办
  • 办公费定义
  • windows11邮件
  • php substring
  • 代扣的工会会费和工会经费
  • 个人转让股权如何缴纳个人所得税税率
  • PHP:oci_field_type()的用法_Oracle函数
  • 土地出让金的收费标准 60%
  • PHP:zip_entry_open()的用法_Zip函数
  • 营改增开始时间
  • 累积未分配利润为负可以分红吗
  • 应收账款转让的限制约定
  • php的curl实例
  • 基于什么意思
  • 激光器原理及应用
  • 底薪和提成分开发合法吗
  • 对公账号备用金怎么用
  • linux中搭建web服务器
  • js继承方式及其优缺点
  • 厂区租赁 法律规定
  • 周转材料二级科目有哪些
  • 不动产投资应该怎么做账
  • mongodb局域网访问
  • sql server 2008使用说明
  • sql2000数据迁移到2008
  • 个人所得税手续费返还增值税申报表怎么填
  • 退个税需要提供哪些资料
  • 公司固定资产抵押贷款无法偿还
  • 会计利润属于什么会计科目
  • 接受捐赠的增值税计入会计利润吗
  • 主营业务成本借贷方向增减
  • 2019年无形资产的摊销额为
  • 工会经费和福利费绩效目标怎么写
  • 新收入准则 2021
  • 免税饲料做为免税吗
  • 其他应付款可以转主营业务收入吗
  • 个人转让不动产交印花税吗
  • 租出的固定资产
  • 关联方往来款如何处理
  • 固定资产如何入账处理
  • 股权过户费用
  • 生产成本与工程施工
  • 原始凭证书写要求
  • mariadb10.1
  • win10系统问题怎么修复
  • mac的itunes怎么下载歌曲
  • mac终端输入代码有什么影响
  • 怎么从win8装回win7
  • js实现apply函数
  • python制作windows安装程序
  • jquery popupDialog 使用 加载jsp页面的方法
  • shell生成excel文件
  • 网页js调试
  • 通用申报表怎么填样本
  • 辽宁省国家税务局官网
  • 实木地板什么
  • 政府收储土地需要缴纳什么税
  • 环保职责及管理范围
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设