Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Redd on December 18, 2014, 06:36:09 PM

Title: Snap to edge behavior similar to UICenter On Child
Post by: Redd on December 18, 2014, 06:36:09 PM
I like how the UICenter On Center work.  Is there something similar that would make an UIDrag Scroll View snap to left or top edge when scrolling?  Thank you for any help you can provide.
Title: Re: Snap to edge behavior similar to UICenter On Child
Post by: ArenMook on December 19, 2014, 07:57:59 AM
If your children are offset by default, it will be like that:

Scroll view
- UICenterOnChild
-- Offset
--- Child 1
-- Offset
--- Child 2
-- Offset
--- Child 3

Otherwise you will need to create your own version of UICenterOnChild that adds an offset.