Hello,
I am using TouchCamera in a project that uses the old InputManager to move objects using the OnMouseDown, OnMouseDrag and OnMouseUp methods.
The project is configured to use both the old InputManager and the new InputSystem.
The camera control works fine.
But moving objects broke down on Android.
On Windows, OnMouseDown works in the editor, but not on Android.
If TouchCameraInputs disabled, the OnMouseDown/etc methods on Android work again.
What could be the problem?
Broke down OnMouseDown
It's not really what I need, can you open a console and typeadb logcat -s "Unity
" and send me the last few lines where it crashes? You should see an exception thrown. Thanks
It's no Unity crash.
Just OnMouseDown/OnMouseDrag/OnMouseUp methods don't work.
Hello,
After debugging, I discovered that the issue with my "OnMouseDown" not working was originating from the inputTouch script. I resolved it by unchecking the "useMouse" option in the inspector.
Attachment Of Script.
https://drive.google.com/file/d/1woLIwrZoJqwMJ_4U_Ky6CiHDaMbhc6D1/view?usp=sharing