位置: 编程技术 - 正文

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

  • 23年车辆购置税税率
  • 企业所得税汇算清缴时间
  • 有税控盘怎么领发票
  • 回单结算卡丢失了严重吗
  • 房租收据样式
  • 个人所得税申报操作流程
  • 纳税人识别号的组成
  • 土增税清算地下室怎么扣除
  • 在建工程进项税额分两年抵扣
  • 港币转人民币差额怎么平帐?
  • 管理人员的奖惩制度
  • 委托收款被拒绝后要怎么做
  • 收到某公司发票会计分录
  • 预收账款核算内容是什么
  • 企业所得税研发费用100%扣除的有哪些企业
  • 水费适用税率
  • 公司一次性缴纳全年社保
  • 什么凭证需要审计报告
  • 应退税款抵扣欠缴税款
  • 外商企业需要交企业所得税吗
  • 上年留抵增值税怎么做账
  • 固定资产清理会计处理例题
  • 背书转让后的电子承兑怎么打印
  • 集团公司收取管理费是否可以税前列支
  • 2019增值税改革政策解读
  • 单位低价向职工售房个人所得税计算
  • 服务业成本会计分析
  • 在卸载程序里找不到软件怎么卸载
  • php fork
  • wordpress访客记录怎么看
  • Win11 Build 22449.1000更新里哪些内容?Win11 Build 22449更新介绍与安装方法
  • 怎么删除win10开机多余选项
  • Thinkphp+smarty+uploadify实现无刷新上传
  • 小企业会计准则调整以前年度费用分录
  • 个人独资企业是小规模纳税人吗
  • php curl_exec
  • 【Pytorch深度学习实战】(11)变分自动编码器(VAE)
  • 增票的纳税人识别号是啥
  • 理财资金用途
  • mongodb项目使用说明
  • python导入模块的本质
  • 出口合同的流程
  • 酒店客房成本计算公式
  • 材料采购如何做好市场调研工作
  • 研发费用加计扣除的条件
  • 长期股权投资与其他权益工具投资的区别
  • 进口环节增值税额
  • 销售免税农产品的会计分录
  • 零申报是不是什么都不用填
  • 机票行程单上没有金额怎么报销
  • 发票怎么领用具体流程
  • 在建工程的进项税额不再分2年抵扣
  • 工程开票金额大写怎么写
  • 事业单位职工福利费支出范围
  • 财务预算怎么做模板
  • 会计计量属性是什么意思
  • w3dbsmgr.exe是什么进程
  • win7系统更改ip地址
  • win10系统如何开启远程桌面连接
  • centos如何操作
  • Win10打开或关闭系统图标里开怎么灰色的
  • 电脑显示无windows
  • windows8.1如何安装
  • linux 系统升级
  • win8补丁官网
  • cocos2dx-js
  • html网站首页
  • python爬虫全套教程
  • unity编译原理
  • 用于登录
  • vue分页查询
  • js实现浏览器状态栏显示
  • android开发吧
  • onInterceptTouchEvent onTouchEvent 的坑 坑死了
  • JavaScript性能优化
  • 江苏省生育登记服务网
  • 河南工商年检网上申报
  • 企业所得税调整情况说明
  • 天津税务查询电话
  • 武汉市江汉区财政局这个单位的公务员待遇怎么样?
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设