- Home /
Why my Unity 5 CrossPlatformInput TouchPad Prefab not working?
Hi, So every control prefab from CrossPlatformInput works except TouchPad. I don't know why. I thought that maybe my project is broken but after creating an empty one with Standard Assets it still not working. Joystick, Tilt, and even jump button in TouchPrefab works except The Pads. And yes I have Event System in scene, mobile Input on and sample scene open... so. Any Ideas?
I'm having the same issue. I'll get back to you when I find the answer or hopefully someone will come by with it before then.
Emm.I think you already know this but you are testing touchPad on a mobile device right? And I hope you have checked touchpad eventtriggers etc.And also in unity 5 you just need to add string name.
Suraj, where would you check touchpad eventtriggers? I haven't seen that component on them or on joysticks (which work). The build target is mobile and it works when built and then run on mobile. But it should work with build-target mobile and unity remote on mobile while still being run from the editor. What do you mean by adding a string name? I couldn't find that in the cross platform documentation.
I get it to work:) At least in the Editor. Build work just fine so if u want to test it in editor u need to comment this line: "if (Input.touchCount >= m_Id + 1 && m_Id != -1)" in touchPad & it works fine in the editor.
Answer by Malkin8 · Oct 09, 2016 at 11:14 AM
Make sure in build settings that you have the correct device