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

[Unity 5.5] Microsoft Edge. Character sticks at direction

Discussion in 'Web' started by AndresSepulveda, Dec 26, 2016.

  1. AndresSepulveda

    AndresSepulveda

    Joined:
    Mar 12, 2014
    Posts:
    52
    Basically my problem is that at first the character moves fine but there is some levels where the character stops responding, and sometimes the character sticks at a direction.
    This happens in Edge. Chrome and Firefox works fine.

    Besides my custom mouse cursor is not displayed in Edge.

    I believe that this could happen because maybe the memory/garbage start to accumulate when the game keep advancing, and in Edge it becomes more obvious.

    I don't know....
     
  2. asdawerwe

    asdawerwe

    Joined:
    Jul 18, 2014
    Posts:
    4
    Hi ... I have the same problem i think ... (unity5.5.0f3)

    ... Input.GetAxisRaw (only in Edge) has delay and sometimes the axis is blocked to -1 or 1 (default Horizontal axis with keys in a default new project)

    ... try this http://cronos.top/testAxis/index.html , press several times key left and key right alternatively and with different pressing times, sometimes it is temporarily blocked and others fixed not returning to zero state.

    PD: Firefox and Chrome work fine ...
     
  3. PatBGames

    PatBGames

    Joined:
    Mar 28, 2009
    Posts:
    120
    Thank you for posting this with a test program. I have the same problem with my game roller-ten.
    It occurs with Edge but all is working fine with Firefox, Chrome and Safari. I have no workaround at this time :(
     
  4. norther

    norther

    Joined:
    Apr 15, 2015
    Posts:
    1
    I have the same issue in my project.

    It happens in webGL build in Edge browser only (Firefox and Chrome work fine).

    I use Input.getKey(). Very often (like every second or third press) the input acts with approximately 1s delay and most of those times it gets stuck on pressed state when I release the button. Pressing it once again updates the state.

    I can confirm that the test project provided by asdawerwe has the same issue on my Edge browser.
     
  5. asdawerwe

    asdawerwe

    Joined:
    Jul 18, 2014
    Posts:
    4
    My browser version ...

    Microsoft Edge 38.14393.0.0
    Microsoft EdgeHTML 14.14393

    I upload testAxis project ... (unity5.5.0f3)
     

    Attached Files:

  6. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    I can repro this here too on Edge and will make it a bug for us to look into but will probably be a thing for the Edge team itself.
     
    asdawerwe likes this.
  7. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    asdawerwe likes this.
  8. asdawerwe

    asdawerwe

    Joined:
    Jul 18, 2014
    Posts:
    4
    I tested with three.js libs (no unity3D) and error persists ... i think this is bug in EDGE ... no unity3D
     
    PatBGames likes this.
  9. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    Could you be so nice to throw your repro up in https://jsfiddle.net/ ? I'd then file a bug against Edge from our end.
    Thanks!
     
    asdawerwe likes this.
  10. PatBGames

    PatBGames

    Joined:
    Mar 28, 2009
    Posts:
    120
    Thank you asdawerwe, contributions like yours is what make this forum a valuable place.
    I've noticed that the bug come from Edge that miss the key press or key release event sometime. But the state of the key is refreshed if another input occurs (mouse or another key).
     
    asdawerwe likes this.
  11. asdawerwe

    asdawerwe

    Joined:
    Jul 18, 2014
    Posts:
    4
    Thanks you ...


    My "testAXIS" version "three.js" ...

    ( ... Press several times key left and key right alternatively and with different pressing times, sometimes it is temporarily blocked and others fixed not returning to zero state. Firefox and Chrome work fine ... )

    https://jsfiddle.net/cronostop/5cf7xmk3/

    PD: keys only works well if webgl is off ... in EDGE
     
    Last edited: Jan 17, 2017
  12. AndresSepulveda

    AndresSepulveda

    Joined:
    Mar 12, 2014
    Posts:
    52
  13. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    asdawerwe likes this.
  14. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    115
    Are there any news?
    Microsoft still does not fix the problem. :)

    Maybe this problem can be solved otherwise?

    I only use 4 inputs:
    Input.GetAxisRaw("Horizontal")
    Input.GetAxisRaw("Vertical")
    Input.GetKey(KeyCode.LeftShift)
    Input.GetKey(KeyCode.Space)
     
  15. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    Still no use, MS has to fix it on their end. Sorry.
     
    Nolex likes this.
  16. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    Nolex likes this.