Author Topic: (3.0.8 f5) Scroll View error message  (Read 5623 times)

Chaos Mage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
(3.0.8 f5) Scroll View error message
« on: January 06, 2014, 04:24:15 AM »
I got this when dragging vertical scroll bar:

transform.localPosition assign attempt for 'Scroll View Panel' is not valid. Input localPosition is { 0.000000, NaN, 0.000000 }.
UnityEngine.Transform:set_localPosition(Vector3)
UIScrollView:SetDragAmount(Single, Single, Boolean) (at Assets/NGUI/Scripts/Interaction/UIScrollView.cs:501)
UIScrollView:OnVerticalBar() (at Assets/NGUI/Scripts/Interaction/UIScrollView.cs:561)
EventDelegate:Execute() (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:225)

The scroll view contains grid with sprites. No error on grid with labels...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: (3.0.8 f5) Scroll View error message
« Reply #1 on: January 06, 2014, 10:33:39 AM »
Is your scroll view's clip region not set? I'd need steps to repro the issue.

Chaos Mage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: (3.0.8 f5) Scroll View error message
« Reply #2 on: January 07, 2014, 03:12:02 AM »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: (3.0.8 f5) Scroll View error message
« Reply #3 on: January 07, 2014, 09:02:09 AM »
You have the scroll view parented to a sprite, which it's also anchored to. It's fine with widgets, but may cause issues with panels. Make your scroll view a sibling of the sprite it's anchored to.

Chaos Mage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: (3.0.8 f5) Scroll View error message
« Reply #4 on: January 07, 2014, 10:22:11 AM »
Ok, but it worked just fine in 3.0.7