Author Topic: UICenterOnChild does not work  (Read 1990 times)

Jonu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile