Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Mouse Clicks not registering in editor after 5.4.0B22 upgrade

Discussion in '5.4 Beta' started by TheOz, Jun 25, 2016.

  1. TheOz

    TheOz

    Joined:
    May 21, 2011
    Posts:
    34
    Hey Guys,

    Anyone else seeing this? I upgraded to the 5.4.0B22 release. and now when I play my project in the editor and click on UI buttons I get nothing. seems to be across all my scenes.


    Garry
     
  2. TheOz

    TheOz

    Joined:
    May 21, 2011
    Posts:
    34
    Rolled back to B21 to be sure I had not broke something in my project. Ui buttons work fine again. Definitly something broke in the UI button events in B22.

    Garry
     
  3. Shushustorm

    Shushustorm

    Joined:
    Jan 6, 2014
    Posts:
    1,084
    I cannot confirm this.
    This is what I tried with successful results using B22:

    UI Image:
    image1.PNG

    Code:
    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class NewBehaviourScript : MonoBehaviour {
    5.  
    6. public void Click () {Debug.Log("Click");}
    7. public void Down () {Debug.Log("Down");}
    8. public void Up () {Debug.Log("Up");}
    9. }
    10.  
    Debug in console:
    image2.PNG
     
  4. jakkovanhunen

    jakkovanhunen

    Joined:
    Oct 20, 2008
    Posts:
    79
    Yes, I'm seeing the same thing. Happens when using a canvas with a screen space camera.
    Filed a bug report: case 809229
     
    MrEsquire likes this.
  5. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    FYI this is a known issue, we broke something :( the fix is already on its way to a release.
     
  6. fallFlat

    fallFlat

    Joined:
    Mar 26, 2014
    Posts:
    26
    The fix did not make to b23, right? My UI is still not responding to mouse (and it works fine in b21).