Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: tiphaine on November 06, 2012, 09:05:10 AM

Title: Scrolling UIButton with UIDraggableCamera
Post by: tiphaine on November 06, 2012, 09:05:10 AM
Hello, I tried to use the draggable camera.
I add UIButton as item in the UITable, so there are the draggable items.
The problem is when I click on an item, I cannot drag because I press the button.
I don't want the button to be activate when I drag the items. But I also need to click on the button when I am not dragging.
Thanks.
Title: Re: Scrolling UIButton with UIDraggableCamera
Post by: AndyGFX on November 06, 2012, 12:24:17 PM
You need write your button event, I had same problem too.
http://www.tasharen.com/forum/index.php?topic=2086.msg10395#msg10395
Title: Re: Scrolling UIButton with UIDraggableCamera
Post by: tiphaine on November 07, 2012, 03:40:53 AM
Ok, thanks for the answer.
I am going to try this idea.
Title: Re: Scrolling UIButton with UIDraggableCamera
Post by: tiphaine on November 07, 2012, 05:38:51 AM
I have tried your solution but it's not working. The button isn't sending the OnPress message but the slider isn't received the drag message.
I'm using the Draggable camera and not the draggable panel.
Any idea ?
Thanks
Title: Re: Scrolling UIButton with UIDraggableCamera
Post by: Madgeniy on February 21, 2013, 10:03:13 AM
Possibly, you need to change scripts order in Editor. If Unity is less Unity 4, you need delete and add scripts in order what you need or buy special stuff for it on AssetStore (about 2$).