- Home /
Question by
GAMELASTER · Apr 22, 2014 at 04:31 PM ·
axisjoystick
Get Axis from Mobile JoyStick
I maked a GUI Texture and assign a Joystick script from Mobile Standart Assets. In another script i try to get Joystick axis by Input.GetAxis("Horizontaly"), but it dont work.
Comment
These are software joysticks. You need to use the 'position' variable of the Joystick object to access input.
You are going to need to get a reference to the game object the joystick is on and then to the Joystick component of that object. There are a variety of ways of making this connection, and accessing other game objects is the most asked question on Unity Answers (so there are lots of posts).
http://docs.unity3d.com/412/Documentation/ScriptReference/index.Accessing_Other_Game_Objects.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613143321im_/https://answers.unity.com/themes/thub/images/avi.jpg)