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

[UIElements] Problem with detach context menu from GraphView

Discussion in 'UI Toolkit' started by Devi-User, Oct 19, 2018.

  1. Devi-User

    Devi-User

    Joined:
    Apr 30, 2016
    Posts:
    61
    When I work with GraphView there is no normal way to remove the context action. Just as there is no way to assign anything to the right mouse button.

    The MouseDown event simply does not come when I press the right button. More precisely, it does not always come. The first time it may work, but in the future is inaccessible.
    If I press the left mouse button, the right mouse button will be processed next. But if two clicks goes in a row, this will not happen.
    You can see it in gif
    https://forum.unity.com/attachments/e532b584-cede-4497-9eb4-ff1671e9486f-gif.316330/

    If override void BuildContextualMenu (ContextualMenuPopulateEvent evt) and make it empty - the error will appear in the log:
    Menu CONTEXT / TEMPORARY-OBJECT-DISPLAY couldn't be found