- 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
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                