位置: 编程技术 - 正文

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

  • 退税怎么做账务处理,需要交什么税
  • 哪些税不用通过应交税费
  • 哪些税种属于中央固定收入
  • 一般风险准备是留存收益吗
  • 小规模暂估入库的账务处理
  • 税金及附加现金流指定
  • 个税申报 两种方式
  • 处置固定资产产生的净损失
  • 5附加税政策优惠退税需要哪些资料
  • 税控盘未清卡怎么办
  • 工会疗养政策对比
  • 财政补贴是什么
  • 转租的门面怎么办营业执照
  • 溢价收购怎么做账
  • 个税多交了怎么退税
  • 本月无销项只有进项申报表如何填写
  • 社保补缴上月的在当月扣款
  • 中药饮片适用增值税税率
  • 职工教育经费是多少
  • 在建工程计提减值准备可以转回吗
  • 成本分析总结报告
  • 公司注销对外投资股权有效吗
  • 稽查查补是什么意思
  • 利息收入是否缴纳印花税
  • 营业外收支计入应纳税所得额吗
  • 所得税税前扣除税金有哪些
  • 净利润分配股利的会计分录
  • win10任务栏向上的箭头不见了
  • 汇兑损益 纳税调整
  • 增值税专用发票和普通发票的区别
  • 房租押金未全额缴纳
  • 主板bios在线升级
  • win11怎么安装CAD2008
  • 购入增值税税控系统专用设备
  • 出口退税款的会计科目
  • 浏览器并发请求队列数量怎么设置
  • php ajax 教程
  • 税控机维护费抵扣分录
  • RTX 4090深度学习性能实测奉上!模型训练可提升60~80%
  • ajax不刷新页面
  • 工具tj
  • 企业购买预付卡怎么做账
  • vue3的
  • 报废机器设备如何缴纳增值税
  • 企业处置固定资产发生的净损失应计入
  • 工业企业总产值怎么算
  • 购买方红字信息表已开销售方系统查不到
  • api接口安全措施
  • 税收筹划类型有哪几种
  • 生产部门包括
  • 股份支付属于应付职工薪酬吗?
  • 银行代发工资流程
  • PostgreSQL教程(九):事物隔离介绍
  • 白酒消费税计税价格由谁核定
  • 小规模纳税人报税
  • 小规模年度企业所得税纳税申报表
  • 交强险还用开车去吗
  • 个人独资企业进行委托管理要签订劳动合同
  • 旅客运输进项抵扣加计扣除怎么算
  • 委托代理出口如何缴纳增值税
  • 用银行存款支付本季度短期借款利息
  • 资本金利润率正常范围
  • 小规模附加税优惠政策最新2023
  • 先款后票图片
  • 会展费会计分录
  • 对公账户如何转钱进去
  • 收到支票如何去银行兑现
  • xp更改dns
  • bios启动项正确设置
  • windows视频截屏
  • JavaScript程序设计形考答案
  • dos打开usb端口
  • dos查看内存命令
  • js文件设置编码
  • python中闭包的作用
  • 重庆税筹公司
  • 税务系统全面从严治党工作会议
  • 四川省地方税务局关于城镇土地使用税困难减免
  • 应纳税所得额怎么求公式
  • 增值税普通发票和电子普通发票的区别
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设