位置: 编程技术 - 正文

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
  • 税法规定的增值税
  • 分公司怎么分配股权
  • 空调属于电子设备还是电气设备
  • 开办费计入管理费用后是否要转出
  • 出口货物的进项发票什么时候认证
  • 待抵扣进项税贷方有余额什么意思
  • 企业创业初期能干什么
  • 无偿取得土地使用权的会计分录
  • 销售费用办公费用
  • 收到上月发票怎么写分录
  • 分期收款什么是分期还款
  • 项目结束,财务应该怎么做
  • windows无法访问共享文件夹
  • 防伪税控开票系统技术维护费
  • PHP:oci_num_fields()的用法_Oracle函数
  • 在建工程进项税额转出
  • 单位银行结算账户属于活期存款账户
  • 微软win11预览版
  • 高速公路电子发票抵扣进项税
  • onekey.exe是什么
  • PHP:json_last_error()的用法_JSON函数
  • 固定资产加速折旧方法
  • 企业会计日记账保管期限为()年。A5B10C30D35
  • 可变现净值属于资产计量属性吗
  • 搭建自己的php框架
  • 自产应税消费品用于在建工程要交增值税吗
  • 水利建设基金申报表哪里
  • php用户登录界面
  • php操作oracle
  • 无人驾驶基础知识
  • WordPress 浏览量修改
  • 应收账款等于什么加什么
  • 个人怎么开专票
  • 中国姓氏英文写法
  • 若依idea
  • kppw源码
  • 农产品免税发票可以抵扣增值税吗
  • 个税专项附加扣除金额
  • 自产农产品免征个人所得税吗
  • 勾选平台发票下载
  • 分公司开票总公司付款可以吗
  • 发给客户的服装文案
  • python中socket怎么用
  • 一般纳税人第一次申请发票
  • 企业注销了,存钱怎么办
  • 开发票没有银行回单可以入帐吗?
  • 质量问题的扣款计入什么科目
  • 技术服务收入包括哪些
  • 即征即退的收入是不征税收入
  • 什么是一般生产要素
  • 个税和社保有什么区别
  • 旅行社代订机票发票报销
  • 投资方持有的能够对被投资单位实施
  • 企业商品销售收入确认条件
  • 使用Mysql5.x以上版本出现报错#1929 Incorrect datetime value: '''' for column ''createtime''的快速解决方法
  • windows下怎么安装mac
  • win7鼠标右键没有压缩文件
  • winxp如何设置文件共享
  • windows xp sp3 vl
  • centos6.x下安装maven CentOS自动安装Maven的方法
  • Linux dpkg-query 命令用法详解(Debian Linux中软件包的查询工具)
  • win8隐藏的文件夹怎么找出来
  • win7开始菜单中的应用程序图标隐藏了
  • unity导出exe文件
  • 环境配置怎么配置
  • nodejs word
  • 简述android中色值原理与表示形式
  • amp designer插件
  • unity3d怎么改变物体大小
  • python调用python代码
  • 初步了解的英文
  • js如何使用
  • python遍历列表的两种方法
  • jquery 遍历
  • 江苏省税务局电子发票
  • 填了专项附加扣除但没有进行综合年度汇算
  • 可以抵扣的消费税计入什么科目
  • 货车附加费多少钱
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设