- Home /
CrossPlatformMobileInput Joystick.cs not working
I have solved the corner problem that a lot of people had, HOWEVER, for some reason i cannot get the axis value. I searched a lot on the internet but i really need assistance. I added an event system. Then i made an image and attached Joystick.cs. This is the Joystick: http://puu.sh/iyH2J/7dd7338894.png This is the Event System: http://puu.sh/iyH4B/3061c5a79a.png And here is the script i am using: using UnityStandardAssets.CrossPlatformInput;
void Update(){
float horizontal = CrossPlatformInputManager.GetAxis("Horizontal") * sensitivity;
print(horizontal);
float vertical = CrossPlatformInputManager.GetAxis("Vertical") * sensitivity;
print(vertical);
}
Now what do i do to make it print a value? It keeps printing "0"
Your answer
Follow this Question
Related Questions
Cross Platform Input touchpad acceleration 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Rounding Numbers not consistent??? (C#) 1 Answer
Change the position of a UI component through pressing a UI Button 1 Answer