13
« on: June 23, 2014, 01:29:21 AM »
I'm using the accordion SV together with PoolManager. Each accordion Item is a prefab. When the accordion is populated the first 2 times, everything works fine. Upon the third time clearing and repopulating the accordion, I cannot drag the items in the horizontal SV.
When I expand one of the Accordion Item header, the items in the horizontal SV are all there, but when I try to drag, I cannot. After clicking a few times, then the dragging works.
In the SV, I added a debug.log and found that it's showing:
SV: OnDrag =Scroll View, mShouldMove =False, active =False
After trying to drag a few time, then it turns into:
SV: OnDrag =Scroll View, mShouldMove =True, active =True
I tried using NGUITools make the SV active but still doesn't work.
Edit: I used this debug line:
Debug.Log("SV: OnDrag ="+ transform.name + ", mShouldMove ="+ mShouldMove + ", NGUIactive ="+ NGUITools.GetActive(gameObject)+ ", active ="+ gameObject.activeSelf);
Got:
SV: OnDrag =Scroll View, mShouldMove =False, NGUIactive =False, active =True
As a test, I made mShouldMove into a public and explicitly set it to True before attempting to drag. Still, when I try to drag mShouldMove is False.