In the scene I can spawn some blueprints that have a mesh and a widget inside them, the blueprints are children of the BuildingMaster_BP. If you click on one of the blueprints with a left mouse button, you open a widget contained in it (Move, Rotate, Delete), if you click the right button you close the widget. How can I disable the ability to click on the other children after I’ve clicked one?
Hi,
One of many solutions could be the use of the node “set input mode UIOnly” on click, and back to normal on right click…
Get rid of the DoOnce and Sequence and add a “SetUIModeGameOnly” at the end of the rightclick event?
input mode, even
With “Set Input Mode UI Only” at the end of Left Button line when i click inside the child the Right Button become disable/inactive.
P.S. With Right Mouse button I have also the camera Pan.
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“full”,“data-tempid”:“temp_156976_1549201078254_55”}[/ATTACH]
https://forums.unrealengine.com/core/image/gif;base64
You can override mouse rightclick in the widget if there is a canvas on the whole screen.
Then you overdrive OnMouseButtonDown.
Sorry I’m no expert.
Override only works within the widget that is not full canvas, it is a limitation of the UI. “Set input Game mode only” does not restore the functionality of the mouse buttons that remain locked.
Well I tried on a quick project.
I used 4 assets
1- Player controller to activate onclick event
2- PlayerCharacter To innitialize the Ui Widget, in my exemple ThidPersonCharacter, could be anything.
3- Widget for the UI
4- Actor with StaticMesh Cube to be clicked on.