sinai-dev / UnityExplorer

An in-game UI for exploring, debugging and modifying IL2CPP and Mono Unity games.
GNU General Public License v3.0
2.33k stars 355 forks source link

New Input System not working with 3.0 #23

Closed NotThisJin closed 3 years ago

NotThisJin commented 3 years ago

Currently, phasmophobia has no actual inputkeys but it seems you guys have the "waspressedthisframe" and thats the only way that you can use the inputkeys. Im having trouble fixing the files to work with phasmophobia. I dont know if you guys might fix it in the future or ill just keep trying.

sinai-dev commented 3 years ago

I don't encourage modding games where the devs specifically don't want anyone modding it, sorry.

In general, UE supports either legacy input or the new input system, which should be all games. Assuming the base unity libraries for the game were unstripped it should work fine.

sinai-dev commented 3 years ago

Update: looks like I should've tested 3.0 with the new input system, it does indeed need a fix. Will leave this open while I figure it out but I renamed it since it isn't exclusive to that game.

sinai-dev commented 3 years ago

Fixed and working again, but it seems there are Unhollower-related errors in IL2CPP with the InputSystem types, making it impossible to read the current mouse position value. Everything else apart from resize and drag seems to work fine though.