Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PolyMad on August 14, 2023, 02:56:33 PM

Title: How to use Unity UI buttons (or whatever) to perform a DRAG action?
Post by: PolyMad on August 14, 2023, 02:56:33 PM
I am trying to use the Unity UI buttons to perform a DRAG action, but of course it can't work: the button only has a ON CLICK event, so that only gets recorded when the mousebutton gets released.
So how do I perform a DRAG action when the player keeps the mouse button pressed inside a certain area?
Title: Re: How to use Unity UI buttons (or whatever) to perform a DRAG action?
Post by: djaydino on August 15, 2023, 06:41:54 AM
Hi.
You can use Pointer Actions
Title: Re: How to use Unity UI buttons (or whatever) to perform a DRAG action?
Post by: PolyMad on August 15, 2023, 08:37:40 AM
Hi.
You can use Pointer Actions

Ohhh that's the trick!
Thank you!