Tasharen Entertainment Forum
Support => Misc Archive => Topic started by: vipo on April 04, 2014, 04:57:16 PM
-
solved
-
Scroll views have an origin point. If set, the content will originate there. So set it to top left and your content will be top-left aligned. You will need to call UIScrollView's ResetPosition() function after changing the content.
-
Right, so choose Center origin point. :P
-
Yes, you need to update.
-
Yes. Update. There is an example of an infinite scroll view. :P
-
UIWrapContent already does what grid used to do. Grid repositions children. So does Wrap Content.
Remove the UIGrid.
-
Not sure what you need explained to be honest. Add content as children of the object that has the wrap script, and it makes wrapping work on its own.
-
If you need multiple rows, then organize your content like this:
UIWrapContent
- Row 1 (UIGrid)
-- Item 1
-- Item 2
-- Item 3
- Row 2 (UIGrid)
-- Item 4
-- Item 5
-- Item 6
-
If you are adding content dynamically you need to let UIWrapContent know by calling its WrapContent() function.