Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IL2CPP - Shim UnityEngine.Input to fix failing to find the type in some games #467

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

ekibun
Copy link
Contributor

@ekibun ekibun commented Dec 28, 2023

Currently I use relection to resolve UnityEngine.Input in both UnityEngine.CoreModule and UnityEngine.InputLegacyModule.

I don't have enviroment to test in old version Unity. No sure it is compatable or not.

Copy link
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 to be working. This is only going to affect IL2CPP so there won't be any effect on old mono versions.

This is a pretty dirty solution, but it is very simple and self-contained so I think it's fine to merge as is.

Ideally there would be a full abstraction class that also handles Unity.InputSystem like BepInEx.UnityInput, but that can be copied from BepInEx later whenever it's ported to the master branch (and it would require some refactoring all over the place).

@ManlyMarco ManlyMarco changed the title fix UnityEngine.Input not found in new Unity IL2CPP - Shim UnityEngine.Input to fix failing to find the type in some games Jun 19, 2024
@ManlyMarco ManlyMarco merged commit 0058f79 into bbepis:master Jun 19, 2024
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