2D Toolkit Forum

2D Toolkit => Support => Topic started by: ahsanI on January 07, 2014, 03:21:16 pm

Title: Scroll view tutorial
Post by: ahsanI on January 07, 2014, 03:21:16 pm
Hi

I am having trouble creating a scrollview. Can anybody guide me with some simple steps or tutorial to create scroll view I have seen demo but thats too is not very simple.

Any help would be greatly appreciated

Thanx
Ahsan
Title: Re: Scroll view tutorial
Post by: unikronsoftware on January 08, 2014, 12:47:54 pm
1. Drag Tk2DROOT/tk2dUI_demo/ControlPrefabs/Layout/ScrollableArea_Horizontal / Vertical into the scene. Make sure the newly dragged prefab is selected, and in the scene view, resize to the size you need this at.
2. Drag the contents of the scroll view into "Content" - Don't change the position of the object, but position your items underneath it.
3. Click "Calculate content length" in the scrollable area inspector to make it fit the content, you should see the blue content length widget resize to fit the contents you added.

That should be it.
Title: Re: Scroll view tutorial
Post by: reinspruch on January 11, 2014, 06:01:10 am
Do you have a video or more documentation? I simply can not get the scrolling to work. Thanks!
Title: Re: Scroll view tutorial
Post by: unikronsoftware on January 11, 2014, 05:52:44 pm
What did you actually try? I am at a loss as what to suggest as I really don't know what you've done wrong.
If you really can't get this to work zip & post the project to support or post in the private support forum, I'll take a quick look.