Skip to content

fix: resolve hotkey unresponsiveness and GUI unstripping errors in IL2CPP#834

Merged
ManlyMarco merged 1 commit into
bbepis:masterfrom
sorrowmoil:fix/input-hotkey
Apr 19, 2026
Merged

fix: resolve hotkey unresponsiveness and GUI unstripping errors in IL2CPP#834
ManlyMarco merged 1 commit into
bbepis:masterfrom
sorrowmoil:fix/input-hotkey

Conversation

@sorrowmoil
Copy link
Copy Markdown
Contributor

This PR is part of a split from a larger PR, as requested in review.

Fixes issues specific to IL2CPP where hotkeys become unresponsive and the UI throws continuous exceptions when opened.

Changes:

  • Input System: Added a new Il2CppLegacyInputSystem class inside UnityInput.cs (wrapped in #if IL2CPP) to directly invoke UnityEngine.Input methods via reflection. As requested, this avoids replacing the contents of the whole LegacyInputSystem and ensures minimal changes outside of the IL2CPP scope.
  • GUI Unstripping Errors: Added fallbacks in TranslationAggregatorWindow and TranslationAggregatorOptionsWindow. Replaced GUILayout methods (BeginScrollView, BeginHorizontal, etc.) with basic GUI rect calculations or safe fallbacks to prevent System.NotSupportedException: Method unstripping failed crashes in heavily stripped IL2CPP games.

Notes:

  • This change only affects IL2CPP environments.
  • Existing behavior for non-IL2CPP remains entirely unchanged.

Copy link
Copy Markdown
Collaborator

@ManlyMarco ManlyMarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed working, thanks for the PRs.

@ManlyMarco ManlyMarco merged commit 5294ee8 into bbepis:master Apr 19, 2026
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.

2 participants