Author Topic: Problem with Example 7 -- Scroll View (Panel)  (Read 7020 times)

Sarus

  • Guest
Problem with Example 7 -- Scroll View (Panel)
« on: April 12, 2012, 07:13:33 AM »
Hello,

I'm trying out the example "Example 7 Scroll View (Panel)" included as part of NGUI paid v2.0.0b.  The example has an error when played in Unity 3.5 Free on my PC. 

I attached a screenshot showing the problem.  Any ideas what could be going on here?  When I try out the same example that you have hosted online it works in the unity web player.

Thank you!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with Example 7 -- Scroll View (Panel)
« Reply #1 on: April 12, 2012, 02:15:19 PM »
Looks like something is wrong with the fantasy atlas. Have you tried importing NGUI into a brand-new project to see if it's fine there?

Sarus

  • Guest
Re: Problem with Example 7 -- Scroll View (Panel)
« Reply #2 on: April 12, 2012, 07:01:49 PM »
Works in a new project.  I tried importing into my current project one more time and it's working now.  Not sure what happened but I suppose the answer is to always try reimporting before posting here haha.  Thank you!

QuasarTD

  • Guest
Re: Problem with Example 7 -- Scroll View (Panel)
« Reply #3 on: April 13, 2012, 06:57:08 AM »
Hi there

I have the same problem with my scrolling

The first image is the scroll window when the game first starts and the second is after scrolling right to the end. there are about 50 items in the grid. Its not the button thats moving but the scroll panel thats moving to the left

« Last Edit: April 13, 2012, 06:58:47 AM by QuasarTD »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with Example 7 -- Scroll View (Panel)
« Reply #4 on: April 13, 2012, 03:14:28 PM »
Are the items added dynamically at run time?

QuasarTD

  • Guest
Re: Problem with Example 7 -- Scroll View (Panel)
« Reply #5 on: April 14, 2012, 05:03:19 AM »
No they are not dynamically added. I copied the structure from the example 7 scene and then just changed it for my own look with my own buttons as the items in the grid.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with Example 7 -- Scroll View (Panel)
« Reply #6 on: April 14, 2012, 01:55:14 PM »
Off the top of my head I can't tell you what's wrong there. You will have to look carefully at what's different from the provided examples. I also suggest grabbing 2.0.0c, as there was a fix for UIGrid in it.