Welcome,
Guest
. Please
login
or
register
.
January 13, 2025, 10:12:17 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
OnPress and Drag at the same time?
« previous
next »
Print
Pages: [
1
]
Author
Topic: OnPress and Drag at the same time? (Read 2631 times)
ENAY
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 248
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?
Logged
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.
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
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.
Logged
ENAY
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 248
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
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
OnPress and Drag at the same time?