位置: 编程技术 - 正文

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

  • 法人是残疾人有什么优惠政策
  • 财税实务与核算会计的区别在哪里?
  • 出口企业何时选择免(征)税申报方式?
  • 个税放在哪个科目核算
  • 小规模免征增值税会计处理
  • 甲企业持有乙企业的非上市股票2000股
  • 税金及附加怎么登账
  • 修缮服务开票项目一览表
  • 国税地税电子钥匙价格
  • 年初数和年末数审计报告不一致
  • 行政单位特殊人工手机电话费是否可以报销
  • 财产租赁个人所得税
  • 委托加工合同如何标注多个地址
  • 地产佣金收入属什么收入
  • 冲销预付款的会计分录
  • 技术服务费发票税率是多少
  • 资产负债表中其他流动资产怎么计算
  • 个税申报已经申报如何更改
  • 清包工有措施费吗
  • 公司购买汽车的购置税怎么做账
  • 个人收回转让的股权个税应如何处理?
  • 会员充值增送如何取消
  • 1697510816
  • 股份制企业是什么
  • 土地合并需要什么资料
  • Yii2使用驼峰命名的形式访问控制器的示例代码
  • 哪个是发票抵扣项目
  • Linux下使用quota命令管理磁盘空间的实例教程
  • neo什么意思翻译成中文
  • 荣耀路由器怎么重置
  • adguard安全
  • php查看变量数据类型
  • 业务招待费会计分录
  • 悬崖边上的门
  • 职工教育经费计入管理费用吗
  • laravel 日志配置
  • 个人从事生产经营
  • 土地增值税的计算方法和步骤例题
  • php is_a
  • 售后回购怎么做会计处理
  • 文心一格百度
  • html动画教程
  • sass和less的区别使用
  • es命令行
  • 公司账户的资金有利息吗
  • 本地住宿费能报销吗
  • 帝国cms模型
  • 金融资产减值包括
  • 申报的财务报表在哪里查询
  • 固定资产的入账时间应该是什么时间
  • 政府补助的范围
  • 实际收到货款分录
  • 装修费用是当月支付吗
  • 购买产品样品计入什么科目
  • 银行存款会计分录需要输入哪些内容
  • 股权转让如何办理
  • 专利补贴收入计入什么科目
  • 货款和发票金额不一致
  • 租金收入确认收入时间
  • 盈利是不是利润的意思
  • 金税盘费用不交会怎么样
  • 属于费用类的会计科目有哪些
  • 固定资产怎么计算折旧额
  • sql server 2000安装包
  • win7系统摄像头打不开
  • win10每次开机都假死机
  • exfat装win7
  • win8.1 应用商店是不是不能用了
  • windows7系统下给WORD2010设置打开密码的方法
  • Android游戏开发教程
  • Python定时器实例代码
  • android 生成图片
  • nginx日志按天切割
  • python里的迭代器
  • jQuery实现表格与ckeckbox的全选与单选功能
  • shell脚本进程号
  • javascript gui
  • jQuery实现table中的tr上下移动并保持序号不变的实例代码
  • 你家预收租金到哪里去了
  • 国家税务局总局河南官网
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设