位置: 编程技术 - 正文

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

  • 纳税怎么理解
  • 由旅行社开具的电子普票代订机票能抵扣税吗?
  • 以固定资产投资的会计处理
  • 员工加班误餐费怎么做凭证
  • 不征税发票需要预缴税款吗
  • 每月先报税还是先清卡
  • 个人与公司交的税怎么算
  • 收到税收返还的会计处理
  • 开票地址开错有什么后果
  • 退税发票误勾选确认
  • 旅游费用可以报销吗
  • 土地使用权的账面价值计入在建工程
  • 现金日记账支出和收入表格怎么做
  • 电子承兑背书一般多久到账
  • 投标人认证证书
  • 雇主责任险为什么不能立即生效
  • 单位购置汽车如何入账
  • 个税手续费返还会计分录
  • 发票开具税收分类是什么意思?
  • 混业经营试点
  • 投资者减除费用可以填0吗
  • 2018年终奖个人所得税计算器公式
  • 不是房屋产权人可以卖房吗
  • 电子税务局进项票汇总
  • 工商年度报表怎么打印出来
  • 股东向公司借款需要交税吗
  • 海关专用缴款书怎么认证?
  • 银行短期理财利息怎么算
  • 分包利润是多少
  • 闲置资金购买理财产品
  • 0x8000005解决方案
  • 支付到期的承兑汇票是大额往来吗
  • 国际重复征税的解决方法公式
  • 发票备注栏填写要求
  • 缴纳上月增值税记账凭证怎么填写
  • php经典教程
  • anyproxy提高公众号文章采集效率
  • php连接mysql查询数据
  • 支付宝账户收到100块钱如何用
  • PHP:pcntl_signal()的用法_PCNTL函数
  • PHP:zip_entry_filesize()的用法_Zip函数
  • 无形资产处置计入哪里
  • 变动成本法计算营业利润
  • 印度泰姬陵建筑
  • php时间戳转换成时间
  • 销售折让销货方式有哪些
  • Vite4 + Vue3 + vue-router4 动态路由
  • vue计算属性和监听属性的区别
  • php判断文件是否存在的函数
  • 文章初审过了
  • 应收账款让售会计怎么做
  • 印花税计提怎么做分录
  • 航空公司可以开发票吗
  • sql server数据表
  • 利润表是当月
  • 无形资产摊销怎么计算
  • 固定资产折旧提完了继续使用
  • 企业运营工资
  • 赠送给客户的商品怎么做会计分录
  • 建账的基本要求
  • 工业企业销售商品
  • mysql的json数据类型
  • 系统存储过程以什么为前缀
  • sql查询从入门到实践
  • Windows如何查看Mac地址
  • ubuntu 18.04防火墙
  • 更新win8
  • mac安全设置在哪里
  • win10系统怎样卸载程序
  • linux命令行怎么用
  • win10升级后怎么还原
  • call to OpenGL ES API with no current context (logged once per thread)
  • Metaio in Unity3d 教程---Metaio扫描图片要求(Image Tracking)
  • js中onunload
  • nodejs实现文件压缩下载
  • linux中文件权限读写执行的三种标志符号依次是
  • js日期操作
  • 15个常用的excel函数公式
  • noodoe如何使用
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设