Hello Guest

Author Topic: How to use scrollable area?  (Read 4222 times)

kashif789us

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
How to use scrollable area?
« on: October 08, 2013, 07:09:49 am »
Is there any tutorial or any help link from which I can learn how to use scrollable area? I have found its prefab and its script but still a nice tutorial or documentation will be very handy. Thanks

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How to use scrollable area?
« Reply #1 on: October 08, 2013, 11:32:55 am »
Check out UI demo 5 (2D Toolkit 2.2), there are examples of using it in 2 different ways.

To do it in the interface, you put your content under the "Content" gameobject (start with position 0,0,0), and set the content length using the sliders or programatically. There really isn't much more to it, you don't need to deal with the script unless you need to do advanced stuff - the demo above covers advanced use.

kashif789us

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: How to use scrollable area?
« Reply #2 on: October 10, 2013, 06:44:56 am »
Okay, got the demo.
« Last Edit: October 10, 2013, 06:47:20 am by kashif789us »

kashif789us

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: How to use scrollable area?
« Reply #3 on: October 10, 2013, 07:07:55 am »
I created a scrollable area, everything works fine, items are added to it, last item is added to it, but it does not scroll :(

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How to use scrollable area?
« Reply #4 on: October 10, 2013, 09:09:15 am »
Can you zip up that project (deleting unnecessary stuff) and send to support at unikronsoftware.com, please. It'll make things a lot easier to work out.