Author Topic: OnPress and Drag at the same time?  (Read 2631 times)

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
OnPress and Drag at the same time?
« on: June 19, 2012, 01:16:03 AM »
Ok, so my UIPanel is draggable, it has button in it. However once you press a button and keep it held down the menu is no longer draggable. I don't suppose it is possible to be able to have the drag feature working at the same time?

joreldraw

  • Guest
Re: OnPress and Drag at the same time?
« Reply #1 on: June 19, 2012, 03:41:53 AM »
Im not sure of your problem.
You like to drag your panel holding the button?

Button have own collider over the dragable panel. You need to add UIdragPanelContent to your button.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: OnPress and Drag at the same time?
« Reply #2 on: June 19, 2012, 03:56:15 AM »
Add a UIDragpanelContents onto your button and set the reference to the panel and there you go.

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: OnPress and Drag at the same time?
« Reply #3 on: June 20, 2012, 06:16:24 AM »
BTW I figured it out. I had the UIDragpanelContents on the wrong object. I had it on the directory holding the image and not the actual image itself. Once I put it in the right place everything worked. Thanks for that :)