Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: ssk9208 on June 15, 2015, 09:49:46 PM

Title: uGui Button Right Click[SOLVED]
Post by: ssk9208 on June 15, 2015, 09:49:46 PM
I need to detect right clicking on a uGui button. Is there an easy way to change the uGui button action to do that, or can someone help me by making an action?

Thanks!
Title: Re: uGui Button Right Click
Post by: jeanfabre on June 16, 2015, 01:50:02 AM
Hi,

 that's a good question. I found the source code that likely will allow for this, I'll implement it in the next release.

http://forum.unity3d.com/threads/can-the-ui-buttons-detect-a-right-mouse-click.279027/


https://trello.com/c/9vKL4GHj/135-unity-ui-update


Bye,

 Jean
Title: Re: uGui Button Right Click
Post by: ssk9208 on June 23, 2015, 10:03:11 PM
Thanks! Please notify when its done.
Title: Re: uGui Button Right Click
Post by: ssk9208 on August 10, 2015, 12:03:28 AM
Any updates on this?
Title: Re: uGui Button Right Click
Post by: jeanfabre on August 10, 2016, 04:05:00 AM
Hi,

 Thanks for this. Indeed there is a pending update for UGUI, so it's on my todo :)

 Bye,

 Jean
Title: Re: uGui Button Right Click
Post by: craigz on September 12, 2016, 08:40:23 PM
Hi,

 Thanks for this. Indeed there is a pending update for UGUI, so it's on my todo :)

 Bye,

 Jean

Wahoo! Excellent! :D thank you Jean!

SO useful haha :D
Title: Re: uGui Button Right Click
Post by: craigz on September 28, 2016, 08:10:26 AM
Hi,

 Thanks for this. Indeed there is a pending update for UGUI, so it's on my todo :)

 Bye,

 Jean

Sorry for the bump again :) and loose eta on this? :D

EDIT: Or any quick instruction on how to pull the last pointer ID info into the FSM?

best,

craigz
Title: Re: uGui Button Right Click
Post by: jeanfabre on October 25, 2016, 04:22:22 AM
Hi,

 Yes, the new version on the Ecosystem allows to get this information.

so now GetLastPointerEventData will give you InputButton values

and I did a new action GetLastPointerEventDataInputButton that takes less space in the action stack to just get the button info and use events for more effective Fsm states logics.

 (https://pbs.twimg.com/media/CvmX4gcXEAAlH1x.jpg)


Bye,

 Jean