位置: 编程技术 - 正文

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
  • 计提增值税及附加税费怎么算
  • 工程施工企业收入确认成本结转案例
  • 分公司小规模
  • 补提上一年度的年终奖
  • 购入汽车的增值税可以抵扣差额开具的销项吗
  • 软件开发里面的人天
  • 财务报表中利润怎么算
  • 企业应收账款无论是否带息,在年末资产负债表中均应以
  • 兼营行为税务处理例子
  • 酒店前台冲账发生错误怎么办?
  • 职工福利基金提取规定
  • 哪些燃料油不征消费税了
  • 企业利用个体户走账
  • 地税都包括什么
  • 印花税所属期是7月到12月,可是税种认定是年,报不了
  • 收藏!广告制作税收分类编码总结
  • 电梯的运行与维护
  • 怎么核对银行存款余额和对账单余额
  • 审计费可以抵扣进项吗
  • 房地产企业城市配套费
  • 金银制成的金银币及摆件是否征收消费税?
  • 斐讯路由器地址在哪里看
  • 存货对外销售会计分录
  • 以前年度的账错了怎么办
  • 货物质量赔偿需要改变收入吗合法吗
  • won10字体变大
  • PHP:oci_internal_debug()的用法_Oracle函数
  • 企业信用贷款账户是什么
  • 关于农产品的法律
  • 包装物逾期是什么意思
  • 提高stable diffusion速度
  • 若依框架前后端分离手机号登录
  • 冬日里的科赫尔湖,德国巴伐利亚州 (© Reinhard Schmid/eStock Photo)
  • phpcrawl
  • AI工具大全
  • 太原市插画工作室
  • 基于stm32的飞行器
  • website
  • 上期累计应纳税所得额
  • 物流公司开几个点的发票
  • 代收代缴水费可以加多少损耗
  • python之sqlalchemy创建表的实例详解
  • 入库材料计入什么科目
  • 营业收入净额是利润表的哪个数
  • 海关缴款通知书怎么查看
  • 上期有留抵进项税额,本期如何申报
  • 固定资产支付的保险费计入成本吗
  • 接受捐赠的固定资产计入什么科目
  • 库存商品视频讲解
  • 培训费产生的差额是什么
  • 多收钱退回去咋说
  • 解析sql语句
  • mysql压测调优
  • win7删除windows.old
  • windows 安装源
  • win7用户在哪
  • linux 用户进程
  • win10输入法怎么添加美式键盘
  • unity3d ngui-TweenRotation翻牌动画
  • 直线画画
  • android系统架构图
  • 安卓游戏报告
  • Node.js中的construct
  • [置顶]游戏名:chivalry2
  • eclipse如何调节字体
  • dropdownlist绑定数据
  • shell变量作用范围
  • python中的字符串必须写在一对双引号中
  • jquery用什么编写
  • 江西电子税局
  • 煤炭开什么发票
  • 购电脑折旧的会计分录
  • 广东省国家税务总局稽查局局长
  • 公积金扣800一个月多少钱
  • 运输企业定额发票是什么
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设