位置: 编程技术 - 正文

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

  • 二手车转让增值税计税依据
  • 蔬菜坏了还能吃吗
  • 新会计准则施行
  • 代开运输发票会不会造成重复征税
  • 业务招待费怎么做会计分录
  • 进口小汽车消费税组成计税价格
  • 非居民企业股权转让协议
  • 没有进货票的商品可以销售吗
  • 小规模附征税减半吗亲
  • 收取线路维护费合法吗
  • 个税系统中允许捐赠比例是多少?
  • 增值税发票丢失可以用复印件入账么
  • 增值税在免税范围内,附加税怎么做
  • 价值多少可以确认收入
  • 费用,资产,成本,损失的区别
  • 消费税的计算公式推导过程
  • 支付给董事的董事费怎么征收个人所得税?
  • 完美解决怠速抖动加油就平稳
  • php版本常用的排版软件
  • 怎么安装win7系统u盘
  • linux操作系统有哪些版本
  • win10 热键
  • PHP:mb_convert_variables()的用法_mbstring函数
  • 出口货物免抵退税 组织收入 影响
  • 中国各省市区域划分
  • 前端使用vue
  • php连接mysql8.0
  • 企业存货期末应如何计价
  • 工会筹备金计税依据
  • 增值税留抵税额计入什么科目
  • 工程建设的项目的划分?
  • ThinkPHP+EasyUI之ComboTree中的会计科目树形菜单实现方法
  • 待提出票据交换及转汇款怎么做账
  • vue好不好学
  • carplcy车载有什么用
  • PHP+mysql+ajax轻量级聊天室实现方法详解
  • python卡方分布随机数
  • 进项未认证但已开票怎么办
  • 企业合并财务报表论文
  • 年初未分配利润在借方表示什么
  • 职工福利费的开支范围的规定扣除
  • 专票没有抵扣联可以作废吗
  • sqlserver批量更新存储脚本
  • 金融商品转让一半增值税
  • 无形资产摊销一经确认不得转回
  • 季度预缴企业所得税要交滞纳金吗
  • 防暑降温费计入工资还是福利费
  • 维修设备增值税税率
  • 营改增会计分录怎么做
  • 执行迟延履行利息的计算
  • 业务招待费可以进项抵扣吗
  • 明细账分类账登记
  • 合同资产减值准备对应科目
  • 销售自己使用过的物品免税吗
  • 建账时应考虑的问题包括下列哪三项
  • mysql调用数据库语句
  • windowssys
  • winxp文件夹选项
  • winpup32.exe - winpup32是什么进程 什么意思
  • ptssvc.exe - ptssvc是什么进程 有什么用
  • 欢迎使用本公司智能语音电动车
  • 3dmconfig.ini有什么用
  • 搞定immutable.js详细说明
  • node-js
  • nodejs oom
  • 每日一个linux命令
  • linux find命令用法
  • 深入领悟六个必须坚持
  • 教女朋友学粤语
  • angular基础
  • python自动生成
  • staticlayout 换行
  • python3中map
  • android:ViewPager与FragmentPagerAdapter
  • 河南省国税电子普通发票发票真伪查询系统
  • 上海市国家税务局地址
  • 山西税务官网登录
  • 西安车辆购置税缴纳需要什么材料
  • 天津税务查询电话
  • 城镇土地使用税优惠政策
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设