Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: kashif789us 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 (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?
-
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.
-
I have looked into it, its working fine for the atlas provided by NGUI but its not working for my custom Atlas.
-
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.