Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

URGENT- buttons not working.

Discussion in 'Developer Preview Archive' started by HolBol, Jan 5, 2012.

  1. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    I've just built my competition entry. yet I go into, and press 'space' or left click (like it's scripted to do so) and nothing happens. Anyway to get round this? Or fix the problem? I'm using standard Input.GetButton commands, and it works in the editor. Help! I need an answer VERY soon.
     
  2. UnknownProfile

    UnknownProfile

    Joined:
    Jan 17, 2009
    Posts:
    2,311
    This same exact thing is happening with me. And I also need it for the exact same reason.
     
  3. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    EEP. I haven't worked this hard for nothing xD It's the first game I've ever finished!
     
  4. Alex Mat

    Alex Mat

    Joined:
    May 14, 2010
    Posts:
    177
    Have you tried using GetKey and not GetButton?
     
  5. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    Yup, same problem.
     
  6. Jakob_Unity

    Jakob_Unity

    Joined:
    Dec 25, 2011
    Posts:
    269
    These are used in the NavMesh example demo:

    Input.GetMouseButtonDown(0)
    Input.GetKeyDown(KeyCode.Space)

    and seem to work
     
  7. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    I'll test the GetMouseButtonDown one. Any ideas why at least two of us are getting this bug? And what if we can't submit to the competition because of this bug?

    EDIT: That doesn't work either.
     
  8. Alex Mat

    Alex Mat

    Joined:
    May 14, 2010
    Posts:
    177
    What about axes? Input.GetAxis("jump") etc
     
  9. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    i'll try.

    EDIT: Nope. Still nothing.
     
    Last edited: Jan 5, 2012
  10. Alex Mat

    Alex Mat

    Joined:
    May 14, 2010
    Posts:
    177
    Really strange, have you tried with another project?
     
  11. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    I don't have anotehr project xD and that won't help it has to work in this one.
     
  12. Alex Mat

    Alex Mat

    Joined:
    May 14, 2010
    Posts:
    177
    This will help to understand if it is a bug with Unity or the project.

    Try to make a new project with a simple character controller and try it out.
     
  13. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    tested another project. same result.
     
  14. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    too late. i sent them both a swf and a webplayer.
     
  15. Aiursrage2k

    Aiursrage2k

    Joined:
    Nov 1, 2009
    Posts:
    4,835
    Which browser were you using, I found that chrome really sucks the big one for flash
     
  16. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    I tested in Firefox, IE, Safari, and Chrome. Too late now anyway.