Skip to content

Conversation

@Nonanti
Copy link
Contributor

@Nonanti Nonanti commented Aug 27, 2025

Unity Engine Integration

Closes #231

What's Added:

  • Unity Engine assembly detection
  • MonoBehaviour protection
  • IL2CPP preparation support
  • Unity Editor integration (Tools menu)
  • Automatic build hooks
  • Unity Asset Store ready package structure

Implementation Details:

  • New BitMono.Unity module with protection classes
  • Editor integration for Unity IDE
  • Package manifest for Unity Package Manager
  • CLI auto-discovery with --unity and --il2cpp flags

Files Changed:

  • New: Unity protection module (src/BitMono.Unity/)
  • Modified: AutofacContainerBuilderExtensions.cs (to load Unity.dll)

Testing:

  • Builds successfully with 0 errors
  • Compatible with all target frameworks
  • Ready for Unity Asset Store distribution

@sunnamed434
Copy link
Owner

sunnamed434 commented Oct 4, 2025

I did changes to your unity engine integration, now is not finished by me yet, I'll add a bit later:

  1. CI/CD (gh actions) pipeline so we could add unitypackage to a releases automatically.
  2. I'll research about how to publish bitmono unity integration to Unity assets Store.
  3. (?) Maybe NuGet package with unity integration, as I remember there's a way to use nuget packages in Unity, idk if this will make obfuscator to work too, need to test.
  4. Need to add docs on all of that, how to use this all, how to test, etc.

Further testing required, but for me it works nicely. IL2CPP #250 is probably going to be added later, as I researched this is not related to how BitMono protects the file, but instead is about editing the IL2CPP C++ source code files.

@sunnamed434 sunnamed434 merged commit 1176d3c into sunnamed434:main Oct 5, 2025
51 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unity Engine Integration

2 participants