Author Topic: Unity 5.0.1 , NGUI 3.8.2 Scrollview not working  (Read 7314 times)

kashif789us

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Unity 5.0.1 , NGUI 3.8.2 Scrollview not working
« on: May 06, 2015, 10:09:09 AM »
I am developing a game on Unity 5.0.1 using NGUI 3.8.2. I want to add a scroll view. I am following this tutorial http://www.youtube.com/watch?v=UK3aMHRfgcw

The steps which I have done are:

1. Added a scroll view and its depth is highest among all panels.

2. Added a sprite child, when I took beyond the corners of the scroll view, it does not get clipped as shown in video.

3. I then added boxcollider and UIDragScrollView script to this sprite so that it may scroll but it does not scroll.

I enabled debug on camera and when I take my pointer over the sprite in scrollview, it always show UIRoot whose depth is set to 0.

Can Anyone help me with it?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Unity 5.0.1 , NGUI 3.8.2 Scrollview not working
« Reply #1 on: May 06, 2015, 10:53:51 AM »
Take a look at the examples of endless scrollviews (13) and the other one in example 7 to get an idea for what needs to be done, as you can see it working in action there.

kashif789us

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Unity 5.0.1 , NGUI 3.8.2 Scrollview not working
« Reply #2 on: May 06, 2015, 11:49:34 AM »
I have looked into it, its working fine for the atlas provided by NGUI but its not working for my custom Atlas.

kashif789us

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Unity 5.0.1 , NGUI 3.8.2 Scrollview not working
« Reply #3 on: May 06, 2015, 12:33:58 PM »
I found the problem. Material used in UIAtlas had the wrong shader selected. I changed it to the sample one and now its working fine.