位置: 编程技术 - 正文

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图片调后一层)

  • 购买方收取的违约金怎么入账
  • 允许税前扣除的项目
  • 可以出口的商品
  • 食堂用固定资产可以抵扣吗
  • 工程结算属于什么行业
  • 一般纳税人销售旧货
  • 小规模纳税人教育费附加和地方教育费附加减免
  • 支付招标代理费需要哪些资料
  • 房地产企业土地增值税清算
  • 待评估资产价值
  • 装修保证金怎么记账
  • 上个月未抵扣忘记做进项会计分录
  • 不相关企业之间的关系
  • 建安发票税率是多少2011年
  • 进项税额转出怎么申报
  • 燃油税改革了谁的钱包
  • 委托加工怎么计算消费税
  • 保证金利息收入怎么开票
  • 银行转账备用金是什么意思
  • 净利润和毛利润的计算公式
  • 增值税普通发票和专用发票有什么区别
  • 股东和原始股的区别
  • mac怎么还原出厂设置
  • bios设置独立显卡优先启动
  • 安装额外语言
  • 预付账款是企业销售过程中形成的一种非货币形式的债权
  • 周转材料月末有余额吗
  • 小企业的场地租金怎么算
  • win10专业版下载教程
  • 螃蟹不能和什么食物一起
  • 以产品对外投资需要进项税额转出吗
  • php字符串定义
  • php b/s
  • uniapp编译原理
  • php jsondecode
  • 程序员神器
  • github ci/cd
  • 房地产企业出售房产增值税
  • 成本票和费用票一样吗
  • 融资手续费计入长期待摊
  • 非流动资产处置计入什么科目
  • 住宿费发票可以开专票吗
  • 教大家8天学通MongoDB——第一天 基础入门篇
  • 筹建期所得税年度申报如何填列
  • 对增值税发票开具方面有何要求?
  • 营改增对金融业税负的影响
  • 红字发票如何做账
  • 残保金中上年在职职工工资总额
  • 对外支付3万美元怎么算
  • 代收污水处理费免税
  • 甲方代交水电费合法吗
  • 带息票据与不带息票据
  • 国库单一账户体系包括哪些账户
  • mysql在查询结果中查询
  • windows 地址解析命令
  • macos怎么使用
  • centos如何更新内核
  • win8的系统
  • linuxsleep函数
  • win10手机版微信uwp下载
  • win7重装系统之后怎么还原系统
  • pop3是什么意思中文
  • 无法启动.dll
  • win8怎么看电脑wifi密码
  • win10系统激活后怎么关闭
  • python模糊搜索字符串
  • python占位
  • bat 截取字符串
  • jQuery通过ajax快速批量提交表单数据
  • shell脚本监控进程
  • java轻松学
  • pyqt5编译
  • win10安装python2.7
  • unity破解安装教程
  • 四川税务网络领发票流程
  • 车辆购置税查询不到
  • 税务怎么在外网申报
  • 广告发布合同属于什么合同
  • 怎样在微信小程序里交医保
  • 政府给予补贴
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设