You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: localPosition gets NaN error in ScrollSnap #508
I'm trying to use ScrollSnap, but it produces error:
transform.localPosition assign attempt for 'Content' is not valid. Input localPosition is { 0.000000, NaN, 0.000000 }.
This happens in:
ScrollSnap.cs > LateUpdate() on the line
_listContainerTransform.localPosition = Vector3.Lerp(_listContainerTransform.localPosition, _lerpTarget, 7.5f * Time.deltaTime);
I have vertical Scrollview with Vertical Layout Group and Content Size Fitter on Content. I also have buttons for Up and Down movement.
I get this error every time if I'm at the top, click down button and then try to scroll up (or the reverse, starting on the bottom, clicking up button and scrolling down). I can give more information if this isn't enough.
Activity
Resolved race condition issue in regards to the ScrollSnap control wh…
Feature/unity6 (#521)
Release 3.0.0 (#523)