Search Issue Tracker

Duplicate

Votes

34

Found in

5.6.0f3

Issue ID

897143

Regression

Yes

Rect Transform values are set to NaN when decreasing the height of the Content game object in Scroll View

UI

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Workaround is possible

To reproduce:

1. In a new project, create a Canvas
2. Set Render Mode to Screen Space - Camera
3. Select Main Camera as Render Camera
4. Create Scroll View
5. Set Movement Type to Clamped
6. Delete Scrollbar game objects
7. Select Content game object and lower Height in Rect Transform
8. Observe Left, Pos Y, Pos Z, Right fields

Expected: lowering the height of the Content game object does not set other Rect Transform values to NaN
Actual: lowering the height of the Content game object sets other Rect Transform values to NaN

Reproduced on 5.6.0f1, 5.6.0f2, 5.6.0f3, 2017.1.0a6.
Regressions introduced in 5.6.0f1.

Comments (8)

  1. 50c23b93335f48e8201c3c0244141ada?d=mm

    fredericoraiss

    Apr 29, 2017 06:20

    Not yet fixed? :(
    I have the same problem!!! I need to update my game and it's giving this problem!
    I use unity 5.6 f3

  2. 92d25bc668af6c5cf336931f1627ba87?d=mm

    GLeBaTi

    Apr 12, 2017 14:00

    Only if i use Clamped (movement type of scrollView)

  3. 92d25bc668af6c5cf336931f1627ba87?d=mm

    GLeBaTi

    Apr 12, 2017 13:06

    This is not dublicate. Reproduced in 2017.1.0b1

  4. 9746878fd170891307bb46706af297a8?d=mm

    dylanh7244

    Apr 09, 2017 15:45

    Really messes up our UI in 5.6f3

  5. 09486d4d71b1e52775a2e871d00d13da?d=mm

    methos5k

    Apr 08, 2017 15:04

    I have the same issue, more or less.
    My use-case was screen space camera or screen space overlay with a scrollView.
    In my situation, i was scaling the object and seeing the same effect of NaN values on the content portion.
    For me, a temp fix was to use 'Elastic' as the problem doesn't seem to occur with that or 'unconstrained'.

  6. 5fd631c157286ac18b7edce4d391d1fd?d=mm

    KaamosRRRopsu

    Apr 05, 2017 20:05

    I have encountered this issue as well on an existing project. I basically have the same setup as the steps described here and changing the height does result in NaN or extreme values.

    But the most annoying part is that the values get messed up also every time I make a new build!

    I have circumvented the issue by making a prefab of the affected object, and after a build I revert the now-messed-up values from prefab.

  7. 5bea511e48c1e18a3d4f8130d05f7286?d=mm

    Mikipedia

    Apr 05, 2017 08:22

    I could reproduce the described behavior by:

    1. In a new project, create a Canvas
    2. Set Render Mode to Screen Space - Camera
    3. Select Main Camera as Render Camera
    4. Create Scroll View
    5. Set Movement Type to Clamped
    6. Adjust height or width of Scroll View game object

    Result: Rect Transform values of the Content game object are set to NaN or some very extreme values.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.