位置: 编程技术 - 正文

Protecting Content With AssetBundle[Unity]

发布时间:2024-02-27

推荐整理分享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图片调后一层)

  • 空调安装维修费会计科目
  • 酒店收入是以当月入账时间为准吗
  • 出口退税贷方余额是什么意思
  • 小规模公司初期注销流程
  • 餐费可以抵扣吗
  • 未达起征点的增值税怎么账务处理
  • 补缴企业所得税的计算公式
  • 固定资产原价的结余额
  • 纳税营业额包含免税营业额吗?
  • 集体土地上的不动产能符合异议28条规定吗
  • 职工发放洗漱用品怎么进行财税处理?
  • 小规模企业房产税怎么算
  • 业务宣传费企业所得税扣除标准是多少
  • 银行承兑汇票贴现
  • 企业外购零部件可以入哪个会计科目核算?
  • 技术合同 免税
  • ukey开票界面
  • mac更新系统版本
  • 软件开发行业的现状
  • Win11怎么关闭自动休眠
  • php实现的三个常数是什么
  • 扶贫入股分红政策
  • 送给经销商的祝福语
  • PHP:pg_field_type()的用法_PostgreSQL函数
  • 什么手机最薄最有手感
  • 蚊子叮咬怎么办手抄报
  • 接受捐赠旧的固定资产以什么价格入帐
  • 租金收入会计分录怎么写
  • 科技推广和应用服务业属于第几产业
  • antd:ConfigProvider+getPopupContainer解决筛选框遮挡问题(及其他浮层问题)
  • javascript保留字有哪些
  • 毕业设计-基于组态软件的流量比值过程控制系统设计
  • 二元运算例子
  • sum(sumif)
  • 销售不同商品的会计分录
  • 企业所得税季报资产总额怎么填
  • 农民工工资专用账户
  • 价税合计公式分配
  • 持有至到期投资属于什么科目
  • 同控下的企业合并分录
  • 关税完税价格计算增值税
  • 受托代销的含义
  • 现金折扣怎么做账
  • 税种分类及其税率
  • 一般纳税人销售旧货可以开专票吗
  • 无偿使用期限
  • 可供出售金融资产是指什么
  • 独立核算 单独核算
  • 饭店的会计做账怎么做
  • mysql子句
  • mysql全部语法
  • sqlserver重命名表名
  • win7系统远程
  • 盘符在哪
  • 两种方法解决一年级看图问题
  • win10用浏览器
  • 苹果mac怎么复制文字
  • win10怎么检查
  • xp系统1
  • win8系统简介
  • win7英语
  • 有没有win8系统
  • win10怎么切任务管理
  • Win10系统如何使用虚拟光驱加载ISO镜像文件?
  • win7移动软件
  • dos命令/s
  • cocos2dx游戏开发
  • unity3d官方案例
  • nodejs跳转到指定页面
  • js数组如何定义
  • node断点调试
  • angularjs2
  • js定时器有哪些,区别及用法
  • JavaScript+html5 canvas绘制的圆弧荡秋千效果完整实例
  • google it automation with python
  • 江苏省内车辆迁入标准
  • 怎么屏蔽微信群消息,但是不退出此群
  • 车辆登记指的是什么
  • 安徽国家税务局电话
  • 四川社保2020增资方案
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号