Author Topic: endless scrollview  (Read 3895 times)

pcutile

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 81
    • View Profile
endless scrollview
« on: August 18, 2014, 12:58:50 PM »
i have tried to use endless scrollview. i have to qeustion

1) why i can't copy gamobject of endless scroll view example ? when i make copy it past UI ROOT..and if i delete uiroot something recreate a random number of ui root..but i solved..i don't copy more.

2) i make my endless scroll view but when i scroll with mouse wheel, the content inside uiwrapcontent scroll how endless but his transform is translated in y axis so content is scrolled up or down without that it disappear..

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: endless scrollview
« Reply #1 on: August 18, 2014, 04:51:27 PM »
2D gui doesn't exist outside of UIRoot (generally), which is why you can't copy it out just anywhere. It's possible to have panels with widgets underneath outside  of UIRoot, but it's generally not recommended unless you know what you're doing.

Take a look at the settings on the ScrollView component on the scrollview. There is a setting for Movement. It should be horizontal, not vertical. http://www.tasharen.com/forum/index.php?topic=6763.0

pcutile

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 81
    • View Profile
Re: endless scrollview
« Reply #2 on: August 19, 2014, 05:06:30 AM »
ok it's right for UIroot i understood.
My scroll view (that is a vertical scroll view) is created in this manner:

window (main sprite with uidragobject attached)
vertical (another sprite with uidragscrollview attached)
scrollview (with vertical scroll view attached )
uiwrapcontent (i used uiwrapcontent and center on child..)
item01 (dragscrollview attached..of in example tried without and with "center on click")
item02
...
item0n

well i try to set on "restricted with panel" but when run it become off..my scroll view continue to go over the window sprite and walk on screen ...why this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: endless scrollview
« Reply #3 on: August 19, 2014, 11:34:31 AM »
Sorry, I can't understand what you wrote in either of the two posts. If your English is this poor, you might want to try to post a picture or two to help illustrate the issues.