Author Topic: Question about scroll views  (Read 6025 times)

recon03

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Question about scroll views
« on: August 14, 2014, 03:49:27 AM »
I will do my best to explain this.


  I have a window for an inventory which is 28 by 28 .  I have the scroll view, when I scroll through the window the windows moves and the scroll  view. 
What is the best way so the window itself does not move.   I  have it set up, the window is moving and the scroll view. Which is something I'm not looking for. I have it were there are 3 28 by 28 windows, and I want it so you can scroll through each window in the same position.  Now its nearly works, but the scroll  view will show one window then the other, in another spot. I


I hope this makes sense . If so if anyone knows a better way to handle this, that would be great. I been following all of the examples.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Question about scroll views
« Reply #1 on: August 14, 2014, 08:07:29 AM »
Sorry but I really don't understand what you're asking here... You have a scroll view and you scroll through the window and the windows moves? What does that mean? Scrolling the scroll view moves the content inside visibly. What does it have to do with windows? What does "the window the windows moves and the scroll view" mean?

recon03

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Question about scroll views
« Reply #2 on: August 16, 2014, 09:02:22 PM »
Let me try and explain this a bit better.      I have two windows 28 by 28.   When you scroll this, the window moves, and the scroll view moves to the second window.  Instead I would  rather see it scroll the view itself in one spot.   Right now the scroll view it self goes over each window and you only see each one, but it scrolls across each of them. When this happens window A is in this position >   Window b <  So when scrolling, not sure why you can't have both windows as you scroll, scroll the same area? 

I hope that is better  .If not I would have to show you  because its an issue  I have never seen before.   No idea why when you scroll the view  it moves,  I would want the windows only to move and as they move, you can see window 1, them you scroll more then window 2 shows. Right now when I do it, it changes the position  of were my view is.. Which makes it look weird.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Question about scroll views
« Reply #3 on: August 16, 2014, 09:05:46 PM »
Sounds like you're actually moving the transform of the scrollview rather than the clip offset. Have you attached the ScrollViewContent scripts properly?

How is your setup of the scrollview? Try to take some screenshots and post here, that will make it much clearer (of the inspector and hierarhcy)

recon03

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Question about scroll views
« Reply #4 on: August 16, 2014, 09:14:07 PM »
In example 7 is what I WANTED, I followed It the same way but the scroll view moves as well, in example  7 it does not. 

recon03

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Question about scroll views
« Reply #5 on: August 16, 2014, 10:25:54 PM »
I set up my scene again,and it fine so either I messed something up, no idea were, because it looked fine or it was a weird bug.  Either way its fixed .