Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Jonu on August 14, 2014, 02:10:30 AM

Title: UICenterOnChild does not work
Post by: Jonu 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?
Title: Re: UICenterOnChild does not work
Post by: ArenMook on August 14, 2014, 07:49:29 AM
http://www.tasharen.com/forum/index.php?topic=10785.0
http://www.tasharen.com/forum/index.php?topic=10743.msg50376#msg50376