Search Unity

  1. Tune in to get all the latest Unity news live from Berlin on June 19, 6pm CEST. Set up a YouTube reminder!
    Dismiss Notice
  2. Unity 2018.1 has arrived! Read about it here
    Dismiss Notice
  3. Scriptable Render Pipeline improvements, Texture Mipmap Streaming, and more! Check out what we have in store for you in the 2018.2 Beta.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  5. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  6. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

2 joysticks CrossPlatformInput for a game on Android

Discussion in 'Extensions & OnGUI' started by Paullux, May 31, 2018.

  1. Paullux

    Paullux

    Joined:
    Aug 6, 2015
    Posts:
    6
    Good morning,

    I used "CrossPlatformInput" from the standard assets, first I put a first joystick, it works fine.

    However, as soon as I try to put a second one, it blocks, it is detected by the Unity test mode, but once the game is compiled, it does not act, it is only present graphically.

    I've been trying to make it work for two days.

    First I logically changed the names of the joysticks, the names of the axes generated by the two joysticks, I also tried to copy the script that handles the joysticks.

    Nothing makes the second joystick doesn't work.

    I need some help.
     
  2. Paullux

    Paullux

    Joined:
    Aug 6, 2015
    Posts:
    6
    I solve the problem, i remove the calling of axes of second joystick in a scene where isn't present.