Unity Obfuscator 过滤指定目录下的所有类

这篇博客介绍了如何使用Unity Obfuscator来过滤并避免混淆指定目录下的所有类。内容包括视频教程和源码示例,主要针对Unity游戏引擎的开发人员。
摘要由CSDN通过智能技术生成

在这里插入图片描述

视频

Unity Obfuscator 过滤指定目录下的所有class

源码

替换调 OptionsManager 脚本文件就可以了

using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;

namespace Beebyte.Obfuscator
{
   
    public class OptionsManager
    {
   
        public const string ImportAssetName = "ObfuscatorOptionsImport";
        public const string OptionsAssetName = "ObfuscatorOptions";

        public const string DefaultImportPath = @"Assets/Editor/Beebyte/Obfuscator/ObfuscatorOptionsImport.asset";
        public const string DefaultOptionsPath = @"Assets/Editor/Beebyte/Obfuscator/ObfuscatorOptions.asset";

        public static Options LoadOptions( )
        {
   
            if ( HasInstallFiles( ) ) Install( );

            Options o = LoadAsset( OptionsAssetName );

            if ( o != null )
            {
   
                Obfuscator.FixHexBug( o );
                return o;
            }

            Debug.LogError( "Failed to load " + OptionsAssetName + " asset at " + DefaultOptionsPath );
            return null;
        }


        [MenuItem( "Tools/Foreach SYFrameWork Class to Opf skip", false, 99 )]
        pu
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
淘宝花钱买的最新版!需要的拿去! 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

极客柒

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值