Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. 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.