Search Unity

Buttons work inside Unity IDK but don't respond or are unreliable with build

Discussion in 'UI Toolkit' started by chriswilloughby, Oct 2, 2021.

  1. chriswilloughby

    chriswilloughby

    Joined:
    Apr 9, 2021
    Posts:
    27
    Hi,

    I've tried so many combinations to solve this but it's still not working.

    Does anyone have any idea why one button, which is being used to return to a menu, doesn't work reliably. I sometimes have to press it three times for it to work, or sometimes it doesn't work at all.

    The other buttons work.

    In the Unity IDK view it works. It only stops working properly after I run a build of the game.

    I have made sure the button has no over lapping GUI elements.

    It's still painful with it's incomprehensible glitchiness.

    Any advice would be great.

    Thanks.
     
  2. jonathanma_unity

    jonathanma_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    229
    Hi, could you give us more details on your issue?

    Are you using UGUI or UI Toolkit and which version?
    If you could include a repro project that would be ideal.
     
    chriswilloughby likes this.
  3. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    Same here. You can see it easily if you select a :hover cursor image, then play the game. It will glitch on and off constantly. It works fine in UI Builder.


    streamable.com/2b7h7m

    0:10 hover glitches.
    0:17 the hover completely stops.
    0:33 glitches.
     
    chriswilloughby likes this.
  4. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    700
    Hello, could it be this same issue that you're facing? https://issuetracker.unity3d.com/is...-when-the-button-is-pressed-for-a-longer-time

    If yes, it's been fixed and it's probably a matter of getting on a version of Unity with the fix. If not, please give us more information so we can try to help you, like Unity version, package version if you're using the package.
     
    chriswilloughby likes this.
  5. chriswilloughby

    chriswilloughby

    Joined:
    Apr 9, 2021
    Posts:
    27
    Thanks for the feedback everyone. Turns out I wasn't disabling scripts on first person controller.