位置: 编程技术 - 正文

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

  • 小规模纳税开专票享受季度30万纳税
  • 外地预缴所得税的会计分录
  • 发票报销哪些要素不能少
  • 员工旅游费怎么记账
  • 费用挂账的会计分录怎么做
  • 上季度资产总额填错了怎么办
  • 企业物流成本会计核算问题研究
  • 拖欠供应商货款
  • 卖二手车怎么做账务处理
  • 担保预计负债要如何做账?
  • 免抵退说
  • 国税申报数据能修改吗
  • 劳务派遣企业的规上企业认定标准
  • 应付账款周转天数上升的原因
  • 当期的费用
  • 供应商的账怎么记
  • 小规模纳税人建筑行业
  • 建筑设计公司的账务处理
  • 税局代开专票作废怎么做账
  • 投资者与被投资者的名人
  • 社会保险中的五险一金
  • 公户的利息收入账务处理咋处理
  • 一次性收取的房租需要按月纳增值税吗
  • win10正版免费下载
  • 实收资本没到位会计怎么处理
  • linux做raid命令
  • 固定资产大修理支出计入什么科目
  • 原始凭证必须具备的基本要素
  • PHP:imagecreatefromgd()的用法_GD库图像处理函数
  • php防止抓包
  • php 封装
  • 小规模单位没交五险一金
  • reprovision签名失败error
  • 技术服务的范围
  • 福利费工会经费教育经费计提比例
  • 固定资产出售算不算收入
  • 百度ai修复照片
  • 织梦cms要钱吗
  • 个人股权转让需要评估吗
  • SQL server 2008中的数据库能否只包含数据文件
  • 数据库varchar和nvarchar
  • 汇算清缴利润调增70万会预警吗
  • 企业所得税视同销售的有哪些?
  • 土地租金计入什么会计科目
  • 会计库存商品属于什么科目
  • 食堂的帐怎么做
  • 融资租赁租金会计科目
  • 人力成本费用率和人工成本利润率
  • 收到赞助费如何开发票
  • 同时知识产权专利,其做账是?
  • 如何进行汇算清缴
  • 收到增值税专用发票会计科目
  • 建筑企业工程管理部职责
  • 返利开红字发票怎么做账
  • 公司利润太高了怎么办
  • sql必会知识
  • mysqldump mysqlpump
  • win8.1升级到win10
  • 修改注册表解决画面撕裂
  • arp攻击的原理及防范
  • dghm.exe是什么程序
  • win7系统中怎样
  • 联想 恢复
  • linux git管理工具
  • certutil - decode/encode BASE64/HEX strings.Print symbols by HEX code
  • 输入法不跳出中文
  • javascript ajax的5种状态介绍
  • cocos2dx 2.2.2
  • python如何不换行
  • nodejs与springboot结合
  • mysql源码安装和二进制安装
  • 从零开始学什么好
  • python数字运算规则
  • Android应用开发实训
  • python迭代器iter
  • python特性和属性
  • 党建引领安全宣传美篇幼儿园
  • 国税地税怎么分成
  • 车险包括车船费吗
  • 地税收社保
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设