Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: astanton81 on March 21, 2015, 07:55:33 PM
-
So I have a UITable set up and I can add cells and everything no problem, and it scrolls with the cells in there when I click anywhere in the table and drag. The cell is just duplicates of a prefab with different data in them for each cell.
I'm now trying to make the cells clickable. I added the UIButton and Box Collider scripts to my cell prefab. And the click event and stuff happens when I click on the cells.
The problem now though is that when I try to click and drag from a cell, it is hitting the collider for the cell and not the scroll view, so I can't click/drag and scroll the table from the cell.
What is the correct way to do this?
-
You need to attach UIDragScrollView to all colliders inside the scroll view.
-
Awesome, worked like a charm, thanks!