Unity插件Obfuscator的使用

一、前期准备
1.下载obfuscator :在AssetStore中搜索obfuscator即可
2.下载.NET Reflector :网上搜索下载即可 用来查看混淆后的代码

二、流程
1.导入obfuscator的Unity包
2. 点击该文件配置混淆选项
在这里插入图片描述
3.
在这里插入图片描述
1 启用混淆代码
2 混淆所有程序集
3 需要混淆的程序集文件名称
4 需要混淆的代码部分,比如说类名 方法名 参数之类的
就这几个设置比较常用 其他的部分用翻译软件看一下提示就知道是干什么的了

4.打包apk

5.将apk的后缀名改为rar或其他你电脑能打开的压缩文件格式并解压

6.打开相应的文件夹 >asset>bin>data>managed 找到你混淆的dll 文件 将其拖入.NET Reflector查看混淆后的代码

在这里插入图片描述
在这里插入图片描述

注意事项

1.拖拽赋值的点击事件需要注明[SkipRename] 或者不设置混淆方法名 因为会将方法名改变 你去点击按钮的时候自然就找不到你拖拽上去的那个方法了

2.所有的数据类需要注明[Skip]不然调用不到里面的属性 同拖拽事件 名字不一样 自然调用不到

3.第三方插件失效的话看看有没有放置到Plugins文件夹内 插件不会去混淆Plugins文件夹内的代码

其它的建议查看
在这里插入图片描述

淘宝花钱买的最新版!需要的拿去! This asset obfuscates your code to make it harder for bad guys to reverse engineer your projects. Specifically designed for Unity, it seamlessly links in with its build process. The top priority of this package is to work straight out of the box with no extra steps required. While other obfuscators can stop a game from working, Beebyte's obfuscator looks for specific Unity related code that must be protected. The contents of your source files are unchanged, the obfuscation targets the compiled assembly. Features: - Supports IL2CPP - Supports Assembly Definition Files (Unity 2017.3+) - Removes Namespaces without any conflicts - Recognises Unity related code that must not be changed - Renames Classes (including MonoBehaviours) - Renames Methods - Renames Parameters - Renames Fields - Renames Properties - Renames Events - String literal obfuscation - Adds fake methods - Easy and extensive customisation using the Unity inspector window - Consistent name translations are possible across multiple builds and developers - Semantically secure cryptographic naming convention for renamed members The asset works for both Unity Free and Unity Pro version 4.2.0 onwards (including Unity 5 & 2017 & 2018). Build targets include Standalone, Android, iOS, WebGL, UWP. Other platforms are not guaranteed or supported but may become supported at a future date. IL2CPP builds are much harder to reverse engineer but strings and member information (class, method names etc) are visible in the global-metadata.dat file. Obfuscation will apply to this file adding further security. Why not complement your security with the Anti-Cheat Toolkit - a great third party asset. For more information about the Obfuscator, please see the FAQ
This asset obfuscates your code to make it harder for bad guys to reverse engineer your projects. Specifically designed for Unity, it seamlessly links in with its build process. The top priority of this package is to work straight out of the box with no extra steps required. While other obfuscators can stop a game from working, Beebyte's obfuscator looks for specific Unity related code that must be protected. The contents of your source files are unchanged, the obfuscation targets the compiled assembly. Features: - Supports IL2CPP - Supports Assembly Definition Files (Unity 2017.3+) - Removes Namespaces without any conflicts - Recognises Unity related code that must not be changed - Renames Classes (including MonoBehaviours) - Renames Methods - Renames Parameters - Renames Fields - Renames Properties - Renames Events - String literal obfuscation - Adds fake methods - Easy and extensive customisation using the Unity inspector window - Consistent name translations are possible across multiple builds and developers - Semantically secure cryptographic naming convention for renamed members The asset works for both Unity Free and Unity Pro version 4.2.0 onwards (including Unity 5 & 2017 & 2018). Build targets include Standalone, Android, iOS, WebGL, UWP. Other platforms are not guaranteed or supported but may become supported at a future date. IL2CPP builds are much harder to reverse engineer but strings and member information (class, method names etc) are visible in the global-metadata.dat file. Obfuscation will apply to this file adding further security. Why not complement your security with the Anti-Cheat Toolkit - a great third party asset. For more information about the Obfuscator, please see the FAQ
WeatherMaker是一个Unity插件,用于在游戏中实现天气效果。它提供了各种功能,包括动态天气、雨、雪、雾、闪电等效果。以下是WeatherMaker的使用教程: 1. 下载和导入插件:首先,你需要从Unity Asset Store或WeatherMaker的官方网站下载插件。然后,在Unity中创建一个新项目或打开现有项目,并将插件导入到项目中。 2. 添加天气效果:在Unity编辑器中,找到WeatherMaker的菜单选项,并点击"Add Weather Maker"来添加天气效果。这将在场景中创建一个天气管理器对象。 3. 配置天气参数:通过选择天气管理器对象,在Inspector面板中可以配置各种天气参数,如天空颜色、云层、雨、雪等效果的强度和颜色。 4. 添加天气效果到场景:在场景中选择一个合适的位置,创建一个空对象,并将WeatherMaker脚本组件添加到该对象上。然后,在脚本组件的Inspector面板中配置所需的天气效果,如雨、雪等。 5. 控制天气效果:你可以通过编写脚本来控制天气效果的触发和停止。例如,你可以在特定条件下开始下雨,或者在玩家进入某个区域时停止雪。 6. 自定义天气效果:WeatherMaker提供了丰富的API和事件,可以让你自定义天气效果。你可以编写自己的脚本来实现特定的天气行为,如闪电效果、风力等。 7. 优化性能:由于天气效果可能会对游戏性能产生一定影响,你可以通过调整WeatherMaker的设置来优化性能。例如,减少雨滴或雪花的数量,降低天气效果的强度等。
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值