Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question On Screen Stick not moving and Control Path not showing correctly

Discussion in 'Input System' started by TheGrovesy, Jul 16, 2023.

  1. TheGrovesy

    TheGrovesy

    Joined:
    Jan 8, 2013
    Posts:
    25
    I'm having some issues trying to get touch controls working from my game. I already have a Canvas, used for text, and I was lead to believe that I can simply create a new sprint object, add the On-Screen Stick component to it and without anything else you should at least be able to move it around (obviously it wont do anything as its not connected to anything), but it doesn't move, it stays fixed where it is.

    Additionally if I click the Control Path option in the On-Screen Stick the drop-down appears over the top of the 'Listen' button. and I am unable to select anything on the drop-down list. Clicking anything does nothing.

    I have also noticed a warning which I assume is related to the issue (see screen shot).

    I have tried uninstalling and reinstalling the editor (2022.3.4f1) and also removed and re-created my sprite game object several times. Hasnt fixed the issue!

    Has anyone else experienced this issue? Any ideas what might be causing it?

    upload_2023-7-16_17-46-38.png
     
  2. TheGrovesy

    TheGrovesy

    Joined:
    Jan 8, 2013
    Posts:
    25
    Interestingly, if I create a new empty project and just add an image and the on-screen stick component then it works as expected. So it looks like its conflicting with something else already in my project :mad:
     
  3. thinkleton

    thinkleton

    Joined:
    Dec 28, 2020
    Posts:
    2
    I am having basically the same problem. My on-screen controls aren't triggering anything, but I found that if I turn on "auto-switch" in the Player Input class, the on-screen controls start sending events, but they get stuck and don't work properly. If I turn off "auto-switch", the controls work smoothly but don't send any events.

    Can you send a screenshot of your new settings? I'm wondering if it's one of the checkboxes that is breaking everything.