Search Unity

[UIElements] Problem with detach context menu from GraphView

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

  1. Devi-User


    Apr 30, 2016
    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

    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