Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Chaos Mage on January 06, 2014, 04:24:15 AM

Title: (3.0.8 f5) Scroll View error message
Post by: Chaos Mage 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...
Title: Re: (3.0.8 f5) Scroll View error message
Post by: ArenMook 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.
Title: Re: (3.0.8 f5) Scroll View error message
Post by: Chaos Mage on January 07, 2014, 03:12:02 AM
http://i.imgur.com/OiVGchc.jpg
Title: Re: (3.0.8 f5) Scroll View error message
Post by: ArenMook 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.
Title: Re: (3.0.8 f5) Scroll View error message
Post by: Chaos Mage on January 07, 2014, 10:22:11 AM
Ok, but it worked just fine in 3.0.7