playMaker

Author Topic: How to use Unity UI buttons (or whatever) to perform a DRAG action?  (Read 1640 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 553
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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: How to use Unity UI buttons (or whatever) to perform a DRAG action?
« Reply #1 on: August 15, 2023, 06:41:54 AM »
Hi.
You can use Pointer Actions

PolyMad

  • Hero Member
  • *****
  • Posts: 553
Re: How to use Unity UI buttons (or whatever) to perform a DRAG action?
« Reply #2 on: August 15, 2023, 08:37:40 AM »
Hi.
You can use Pointer Actions

Ohhh that's the trick!
Thank you!