XUnity.AutoTranslator icon indicating copy to clipboard operation
XUnity.AutoTranslator copied to clipboard

Fix HandleInputSafe crashing in some games

Open ManlyMarco opened this issue 9 months ago • 0 comments

In some cases input API can throw an InvalidOperationException, resulting in error spam on every frame. I don't see any reason to catch only specific Exceptions, they are logged and the end result is the same - Input API isn't usable.

Full exception message: System.InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.

ManlyMarco avatar May 02 '24 15:05 ManlyMarco