- Home /
CrossPlatformInput touch controls not working
Hi guys, with unity 5 they added, what seems to be, a pretty useful asset to manage inputs from different platforms. So I tried to test it:
I imported the RigidBodyFPSController prefab in the scene, wich also is in the standard assets, and the MoblileSingleStickControl prefab
I switched platform to android and connected my device running unity remote
Now in the menu bar there is a MobileInput entry, when it's disabled I'm able to control the player with mouse and keyboard, while, when I enable it, mouse and keyboard get disabled and I'm prompted to use touch controls...but they won't work.
I'm sure that my device is not the problem as I used unity remote before and both input and "stream" work fine, also if I use tilt control in the assets they work fine while gui buttons won't.
Any suggestions? Thanks!
Answer by $$anonymous$$ · May 29, 2015 at 09:14 AM
Step to step using Standard Assets :
1) Add ThirdPersonCharacter, MobileSingleStickControl prefabs.
2) IMPORTANT : Add one EventSystem to Hierarchy (Hierarchy panel > Create> UI > Event System) . NOT activate any "Allow Activation On ... "
3) Now must work. But the joystick have a bug putting it at bad position. For fix, open joystick.cs inside the object and change OnEnable () to Start()
Tested on 5.0.2f1
I found the solution here :
http://forum.unity3d.com/threads/unity-5-new-mobile-assets-joystick-problem.307627/
Your answer

Follow this Question
Related Questions
CrossPlatformInputManager: Touch AND Keyboard Input 0 Answers
"Phantom" mouse cursor/touch on iOS but not Android? 1 Answer
solution to detect multi- finger touch position 2 Answers
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
mouse input to touch input help please 0 Answers