位置: 编程技术 - 正文

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

  • 必要收益率的取值可以是
  • 增值税发票抵扣勾选平台
  • 有金额的框架协议要交印花税吗
  • 进项税额转出影响城建税吗
  • 企业公示实缴填写
  • 预交土地增值税怎么计算公式
  • 招标代理服务费收费标准2023
  • 营改增后取得土地转让
  • 关于两套账老板和会计须知的4个点
  • 电厂采购通常采购什么
  • 代收代缴水电费能开发票吗
  • 小规模纳税人会计核算健全,能够提供准确
  • 去银行打回单需要带身份证吗
  • 琥珀销售用语
  • 如果在XP系统中QQ音乐听不了怎么办?
  • 网页老是自己跳出来
  • 会计的运费怎么写分录
  • 笔记本电脑如何恢复出厂系统
  • 办理营业执照费用和流程
  • 没有桌面和任务栏怎么办
  • 加班费如何做账
  • le启动exe是什么意思
  • 股东无偿转让股权
  • 大溪地海岛在什么地方
  • framework for
  • 税务安全证书不成功什么意思
  • php用户登录界面
  • 跳出框架是什么意思
  • 公章没有数字是什么情况
  • vue基础知识
  • php如何入门
  • 土地测绘费计入管理费用明细科目吗
  • 命令行修改mbr
  • sosreport命令收集详细信息
  • 物业费少交点,有什么理由
  • 汇算清缴时期间费用是负数
  • 手机上动态调试apk
  • 补发去年工资会被扣税吗
  • 企业所得税核定管理办法
  • 营改增后建筑企业财务核算
  • 商业折扣应该怎么计算
  • 一般纳税人进项销项抵扣如何做账
  • 增值税一般纳税人是什么意思
  • 营业执照丢失公告后几天可以办注销
  • 应收账款的客户如何分析
  • 小规模纳税人已付款对方不开发票几年了会计分录
  • 固定资产的计提折旧方法有哪些
  • 未开票收入如何申报增值税
  • 福利费属于管理费用还是销售费用
  • 现金日记账的日期栏是指记账凭证的日期
  • sqlserver获取uuid
  • mysql中字符串函数
  • MySql 5.6.35 winx64 安装详细教程
  • 目前默认系统%1
  • 查看电伊
  • xp快捷桌面图标
  • 虚拟机的ubuntu
  • ubuntu做lvm
  • 开启linux系统路由转发功能的语句
  • spoolsrv32.exe - spoolsrv32进程是什么文件 有何作用
  • centos7添加桌面图标
  • 安装linux出现grub的原因
  • linux常见的启动方式
  • unity 手册
  • 深入理解新发展理念,推进供给侧结构性改革心得体会
  • perl文件操作
  • node.js创建服务
  • android的基本概念
  • 用vue写登录页面
  • Unity3D游戏开发引擎
  • imagelearning
  • JavaScript的函数中只能写一条代码语句
  • 编程 delphi
  • jquery将文本框设置为只读
  • 湖北农信换手机登录不了
  • 开票系统增值税专票税率选多少
  • 税务部门立足
  • 四川地税务局官网
  • 小规模纳税季度申报
  • 云旅游存在的问题及解决措施
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设