Search Issue Tracker

Fixed in 2017.1.0f3

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

uGUI

-

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. 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. GLeBaTi

    Apr 12, 2017 14:00

    Only if i use Clamped (movement type of scrollView)

  3. GLeBaTi

    Apr 12, 2017 13:06

    This is not dublicate. Reproduced in 2017.1.0b1

  4. MrLucid72

    Apr 09, 2017 15:45

    Really messes up our UI in 5.6f3

  5. 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. 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. 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.

Add comment

Log in to post comment

All about bugs

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