1
NGUI 3 Support / UICenterOnChild does not work
« on: August 14, 2014, 02:10:30 AM »
In version 3.6.9, UICenterOnChild does not work. It is working on Enable, but not after dragging.
Hierarchy is
- UIScrollView
- - UIGrid <- UICenterOnChild is here
- - - Object <- BoxCollider and UIDragScrollView
- - - - Labels and Sprites
- - - Object <- BoxCollider and UIDragScrollView
- - - - Labels and Sprites
- - - Object <- BoxCollider and UIDragScrollView
- - - - Labels and Sprites
I tried:
http://www.tasharen.com/forum/index.php?topic=10743
http://www.tasharen.com/forum/index.php?topic=10749
but they do not fix my problem.
I noticed that in UICenterOnChild.cs line 53
void OnDragFinished () { if (enabled) Recenter(); }
never called. Can it be because this Recenter() never called?
Hierarchy is
- UIScrollView
- - UIGrid <- UICenterOnChild is here
- - - Object <- BoxCollider and UIDragScrollView
- - - - Labels and Sprites
- - - Object <- BoxCollider and UIDragScrollView
- - - - Labels and Sprites
- - - Object <- BoxCollider and UIDragScrollView
- - - - Labels and Sprites
I tried:
http://www.tasharen.com/forum/index.php?topic=10743
http://www.tasharen.com/forum/index.php?topic=10749
but they do not fix my problem.
I noticed that in UICenterOnChild.cs line 53
void OnDragFinished () { if (enabled) Recenter(); }
never called. Can it be because this Recenter() never called?
