Author Topic: NGUI Scrollview and Depth Issue  (Read 2417 times)

coxy17

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
NGUI Scrollview and Depth Issue
« on: June 12, 2017, 03:23:35 AM »
Hi

I have setup the following for menu, which uses buttons for navigating pages, i cant place them inside the scrollview as i need them to visible on all pages. I have a weird issue where if i change the UIScrollview depth to 1. The left and right buttons are no longer clickable. If i change this back to 0, then i can click them. Any ideas why?

UIRoot (depth = 0)
    - Button Right (depth = 2)
    - Button Left (depth = 2)
    - UIScrollView (With UI Panel of Depth = 1)
         - Grid

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: NGUI Scrollview and Depth Issue
« Reply #1 on: June 12, 2017, 05:24:34 PM »
Your UIRoot is on a panel (depth 0) and your UIScrollView is on (depth 1)

The depth of your Buttons are not relevant to panels - only the objects within the panel.


devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: NGUI Scrollview and Depth Issue
« Reply #2 on: June 12, 2017, 05:32:15 PM »
Each panel has a fresh set of depth's.

Make sure your scrollview panel doesnt cover your buttons - or move your buttons to a panel with depth 2.


PS very frustrating i can't edit my own posts.

coxy17

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: NGUI Scrollview and Depth Issue
« Reply #3 on: June 13, 2017, 02:12:51 AM »
Hi

Thanks! i never thought about that.