- Home /
Too subjective and argumentative
Changing GUI Buttons While Mouse Down
(For instace) I have 2 buttons, Button A triggers Event 1, Button B triggers Event 2, and both of them triggers Event 3 when mouse is relased on them or mouse is no longer on two of them.
So, which EventSystem triggers i need to use? Thanks in advance.
If you do use the 4.6 UI system you can use the basic "OnClick" event that is already available on your Button Component and then reference the function that will trigger the right functions (1 and 2 depending on the button). After add another EventTrigger Component with a "PointerUP" event that will both call the same function for your buttons (number 3).
@Nerevar PointerClick only works if you "click" once, that means you have to press and relase. I only want down. And onclick or pointerdown doesn't get updated in eventsystem when you change mouse to another button while mouse is down.
Then maybe try also working with On$$anonymous$$ouseOver()?