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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Strange problem with UI buttons after updating Unity

Discussion in 'UGUI & TextMesh Pro' started by angel_m, Dec 19, 2017.

  1. angel_m

    angel_m

    Joined:
    Nov 4, 2005
    Posts:
    1,160
    I have a problem with UI system after updating my project from Unity 5.1.4 to 5.6.4.The buttons don't work because they seem not to detect the mouse.
    I have found the buttons do work when any input axis of keyboard (cursors keys or w,s,a,d keys) are pressed simultaneously !!
    Very strange and very curious, because I have not changed my code and in Unity 5.1.4 the buttons worked well without this strange behaviour.

    Any idea?
     
  2. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    Though this should be unrelated to an update, just ensure that you have an EventSystem in your game.
    Also, if your canvas is set to world or camera, make sure the right camera is referenced.
     
    St4Rn3Rd012 likes this.
  3. angel_m

    angel_m

    Joined:
    Nov 4, 2005
    Posts:
    1,160
    Thanks but it is not the problem.
    As I said the code has not been changed and after the update all works well but the UI buttons.
     
  4. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    Hm, k, sounds strange. Tough to imagine buttons not working in a release, but I haven't used every release :)
    Hope you get it sorted.
     
  5. PeregrineSpur

    PeregrineSpur

    Joined:
    Aug 18, 2014
    Posts:
    4
    Hi, we have experienced a similar problem. Since we came back from leave and the project we are busy with is now not functioning they way it was. We have a number of UI buttons that now for some reason default to a specific screen. Very peculiar. I think it has to do with the last upgrade as we have not touched any code. Anyone able to help. Else we will need to revert back to building buttons from scratch.
     
  6. FlavioMonteiro

    FlavioMonteiro

    Joined:
    Jun 16, 2017
    Posts:
    1
    I've had reseted the layout to factory settings and worked for me...