Author Topic: Grouping Scroll view with an Image as its Background  (Read 2755 times)

dendenny01

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 4
    • View Profile
Grouping Scroll view with an Image as its Background
« on: June 23, 2014, 10:47:34 AM »
The scenario is that i have a Toggle button and two Scroll View each having a image to be sat as their background
When The Button is in checked state one of the two scroll view is Visible and the other is hidden where is when the button is in off state the second scroll view is visible.

But the Problem that I am having is  how can I group the background image and its respective scroll view together
I had tried to achieve the result by using an Invisible widget but the efforts were in vein
the depth is One of the big problem which are making the scroll view overlap
here is the Hierarchy

UIRoot(2D)
|
-Camera
  |
  --Panel
     |
     ---Anchor-left
     |   |               /**More GUI**/
     |    ----panel
     |
     ---AnchorTop  /*Scroll*/
         |
         ----Panel
               |
               -----Container1
               |       |
               |        ------ScrollView
               |       |
               |        ------Background
               |
               -----Container1
                      |
                       ------ScrollView
                      |
                       ------Background

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Grouping Scroll view with an Image as its Background
« Reply #1 on: June 24, 2014, 04:11:18 AM »
What's Anchor-left and Anchortop? What are containers? Why is everything parented to the camera? You seem to be using NGUI 2's hierarchy there for some reason.