NodeCanvas Forums › General Discussion › MousePick or UI Button Click
hello,
i have a simple problem,
i me click any ui button at screen i do not want that a mousepick condition select the object behind this button.
Hello,
Can you please provide more info, or an example so that I can better understand what you mean?
Sorry :/
Join us on Discord: https://discord.gg/97q2Rjh
me using a mousepick for navigation or selecting 3d objects.
but if me click at a ui button i got also an unwanted mousepick event (transition).
(my current workaround is to use the right mouse button for mousepick and the left mouse button for the gui,
but my goal is to use only left button or one finger/tap at touch screen)
in a fsm me used “check mouse pick” and a “button clicked” connection.
it seems that the “check mouse pick” comes first once if the mouse button is down and the “button clicked” after a button down and release.
Hello,
The ‘Check Mouse Pick’ has a layer field to select which layer to check the click against. So if your UI is in a layer named “UI” for example and the selected layer is “Dsefault” for example, then the check mouse pick will only check picked objects in the Default layer.
You can also affect the order which transitions are checked if you want, simply by re-ordering he transitions in the state by drag and dropping them in the state’s inspector.
Let me know if the above helps you.
Thanks
Join us on Discord: https://discord.gg/97q2Rjh
hi,
it seems that the “Check Mouse Pick” see only his selected layer. means i can click through a ui layer.
me thought that i can cancel if the “Check Mouse Pick” check against a ui layer before, but at ui i got no feedback.
i thinks its because the button is not a gameobject but me tested also with pick 2d.
me still have a problem 🙁