Search Unity

no joystick on screen

Discussion in 'iOS and tvOS' started by volpygregor, May 21, 2012.

  1. volpygregor

    volpygregor

    Joined:
    Mar 30, 2012
    Posts:
    4
    Hi guys,

    Hopefully Im posting in the right place.
    Im currently using unity 5.1.1f2 PC and MAC ( both with android and IOS license) . Im trying to use the mobile joystick but it wont be shown on screen. I have inserted the camera relative control (both on mac and pc ) but it would not work. I also tried to set the joystick axis x,y,z to 0 (in case it was not visible on screen) and also checked if any gysmo was disabled. but nohing :( I even tried to start a new project and reimorted the mobile assets again and nothing. the only thing i see on screen is the cylinder and the camera ( but no joystick - although the hierarchy says both of them are there) .

    am I missing anything.

    thanks guys
     
  2. DrKnickerbocker

    DrKnickerbocker

    Joined:
    Aug 18, 2012
    Posts:
    1
    I can't get the virtual joystick to show up either. I drag in the prefab from the standard mobile assets and I see nothing. :(

    Does anybody know what the problem is? Thanks for any replies.
     
  3. Hamdullahshah

    Hamdullahshah

    Joined:
    Sep 24, 2012
    Posts:
    12
    Same here.... any one got the solution??
     
  4. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,260
    I used to have endless problems with joysticks, until I found Virtual Control Suite

    Never had any problems with joysticks since then.
     
  5. wassim

    wassim

    Joined:
    Dec 20, 2012
    Posts:
    1
    Took me half a day to figure it out ;).

    Do not copy/drag the prefab from the prefab folder.
    1. Launch camera/player relative setup from Controller setups folder.
    2. Copy the prefab from hierarchy view
    3. Go back to your project scene and paste it in your hierarchy
    4. Switch to game view and the joystick should appear
     
    Last edited: Dec 20, 2012
  6. ithan

    ithan

    Joined:
    Aug 21, 2013
    Posts:
    2
    unity 4. doesn't work joystick with player relative controls, and not visible in viewport
     
  7. marcoutinho

    marcoutinho

    Joined:
    Dec 30, 2013
    Posts:
    1
    You just have put the controller (prefab) in position 0,0,0. This solved my problem. :D
     
  8. germanicus03

    germanicus03

    Joined:
    May 13, 2017
    Posts:
    1
    I solved it by going to build settings and building the app for Android once. Then the joystick instantly was visible.

    P.S. Although this is a really old thread and with no clear answer, this is the only relevant search result that was found by Google for this problem. That is why I posting a reply to this thread after so long.
     
  9. israrulhaq07

    israrulhaq07

    Joined:
    Jul 9, 2017
    Posts:
    1
    Thank You so much
    This answer helped me solved my problem after a week struggle in google search.
     
  10. nicolincn0322

    nicolincn0322

    Joined:
    Sep 18, 2017
    Posts:
    2
    I think this could be found in your code script :in my case, there is a variable of bool type defined in my code and use "Hide(true)" and it's in effect. But it's not shown before you build the project. If it was serialized, the property shall show in the hierarchy.
     
  11. CodeOneFortyNineINC

    CodeOneFortyNineINC

    Joined:
    Nov 29, 2016
    Posts:
    5
    Another thing I found was that the joystick will not show up if you put the joystick in a canvas, it must be on its own.
     
    Orcang and AntGenix like this.
  12. ClaireTao

    ClaireTao

    Joined:
    Jan 28, 2019
    Posts:
    1
    Yes ! This works for me ! I changed Build setting to iOS and its worked.
     
  13. allthatrage

    allthatrage

    Joined:
    Jun 24, 2018
    Posts:
    1
    82. line of code in MobileControlRig.cs, EnableControlRig(false); // change it to true, I just had to delete and add prefab to scene again.
     
    qicesun0401, assiljanbeih and GizFei like this.
  14. TraeCodex

    TraeCodex

    Joined:
    Oct 16, 2018
    Posts:
    2
    SOLUTION

    put the joy stick in a canvas
     
    Reaper_Industries likes this.
  15. Reaper_Industries

    Reaper_Industries

    Joined:
    Jul 16, 2022
    Posts:
    1
    If you read the documentation in the folder of the joystick, you'd see that it says specifically to put it in a canvas, because it's a UI element. (yes, I just found that out the hard way)