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. Dismiss Notice

Bug Pointer Event issues while rotating VisualElement

Discussion in 'UI Toolkit' started by Nomadjackalope, Sep 3, 2021.

  1. Nomadjackalope

    Nomadjackalope

    Joined:
    Jul 12, 2016
    Posts:
    16
    Issue:
    I have a Visual Element to which I have added dragging functionality. When I click on that element and drag it, it will rotate 90 degrees via script but two of the rotations cause it to lose pointer events when it is under another visual element even though that element is set to ignore pointers.

    To reproduce:
    Run the sample scene. Click and drag the blue element into the red area. Drag it back to the green area and let go. Repeat this for all rotations. Expected behavior is that dragging will perform the same for all rotations.

    Probably related:
    In TestDraggable uncomment all lines marked to uncomment and repeat the above. This will result in other odd functionality.
    If you let go of the element it also will be completely removed from receiving pick events even from the debugger if PickingMode.Ignore is set while the rotation happens, even when PickingMode.Position is set later.


    I have reported this as a bug(case 1360803) but wanted to alert others of these issues and Unity support, you seem to be paying close attention to this forum. Thanks!

    Windows 10
    Unity 2021.2.0b9.3335
     

    Attached Files:

  2. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    754
  3. Nomadjackalope

    Nomadjackalope

    Joined:
    Jul 12, 2016
    Posts:
    16
    Thanks, I didn't find that. It looks plausible but it is marked fixed. I wonder if it hasn't made it into the latest update?
     
  4. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    754
    It looks like the alpha :(

    Fixed 2022.1.0a6.886
     
  5. AlexandreT-unity

    AlexandreT-unity

    Unity Technologies

    Joined:
    Feb 1, 2018
    Posts:
    323
    I'm investigating why no backport has been opened. Stay tuned.

    EDIT: A backport case has just been opened for 21.2.
     
    Last edited: Sep 8, 2021
    Nomadjackalope and MousePods like this.
  6. Nomadjackalope

    Nomadjackalope

    Joined:
    Jul 12, 2016
    Posts:
    16
    Wow, I am not observant. I downloaded the alpha and it seems all of my issues have been fixed.
     
    MousePods likes this.