位置: 编程技术 - 正文

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

  • 进项税转出从待认证到月末结转的会计分录是
  • 汇算清缴企业所得税弥补亏损明细表怎么填
  • 8月现金收入9月存银行如何做账
  • 合并报表盈余公积等于母公司盈余公积
  • 职工教育经费怎么花
  • 购房契税应该交给谁
  • 地产股权收购公司的账务处理
  • 采购商品未收到分录
  • 交强险发票备注的车船税怎么报销
  • 工地工资是人走账清吗
  • 异地经营需要办什么税务手续?
  • 房屋租赁发票在哪开
  • 企业向个人赠送车辆
  • 代扣代缴个人所得税现金流计入哪里
  • 货物抵扣如何入账
  • 土地闲置费可以税前扣除吗
  • 轮胎计入什么会计科目
  • 营业执照号码含义
  • 财务软件里面可以修改吗
  • 增值税电子缴款凭证在哪里打印
  • ntfs磁盘压缩
  • vivo手机可以安装鸿蒙
  • 签证费会计分录
  • 自己使用过的固定资产和旧货有什么区别
  • 增值税中的视同销售区分为几种情况?
  • 技术服务合同要盖骑缝章吗
  • 发生销售折让会计分录
  • 苹果手机麦克风模式关闭了,怎样才能打开?
  • php数组函数,选班长
  • 招待费如何列支
  • 总部资产减值测试例题
  • PQIBrowser.exe是什么进程 PQIBrowser进程查询
  • 试用期人员工资财务记账
  • php制作简单的表单代码
  • 企业所得税汇算清缴账务处理
  • vue高级函数
  • 利润表中的管理费用怎么填
  • 计提工资薪金
  • 帝国cms灵动标签怎么调用
  • dede织梦怎么转成zblog
  • 公允价值变动损益
  • mongo groupby
  • 经营所得预缴申报收入总额
  • 现流表与资产负债表的关系
  • 应交税费增值税销项税
  • 2020年增值税税收政策
  • 开具发票涉及到哪些会计科目?
  • 车辆购置税多少个点?
  • 红字申请单如何打印出来
  • 残疾人就业保障金会计分录怎么做
  • 交纳增值税的账务处理PPT
  • 未按期预缴企业社保
  • 公司法人借款给企业属于关联交易吗?
  • 地方教育附加申报
  • 在window7
  • Windows Server 2008作为打印服务器排错
  • mac系统怎么打开任务管理器
  • git服务器默认端口
  • linux安装mailx
  • windows7怎么添加设备
  • mac adobe flash player一直提示更新
  • win7系统自带刻录启用
  • excel打开csv文件数据有丢失
  • 32/64位Win10预览版11102(中英日韩等)多国语言包官方iso镜像下载大全
  • win7关机没有强制关机选项
  • linux自动化装机
  • Linux如何使用clash
  • unity做小地图
  • Unity3D 事件
  • Node.js中的全局对象有
  • android 动效
  • javascript如何学
  • linux0.11编译
  • json遍历对象集合
  • locust框架
  • 电子普票最多领多少
  • 收购烟叶可抵扣进项税
  • 安徽国税局发票查询系统
  • 浙江增值税发票勾选认证流程
  • 美国各州地税税率
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设