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
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity icon is poorly visible in the "Build Profiles" window when "Dark" editor theme is selected
- UI Toolkit Transition Animation is ignored when background-size property has a starting value of 0
- Error "Assertion failed on expression: 'i->previewArtifactID == found->second.previewArtifactID'" is present when creating Render Texture
- UGUI elements do not stay centered when resizing a floating Game view Window in any SRP project
- InvalidOperationException error appears when using a custom audio search provider and opening the Search window
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
GLeBaTi
Apr 12, 2017 14:00
Only if i use Clamped (movement type of scrollView)
GLeBaTi
Apr 12, 2017 13:10
-scrollView: http://i89.fastpic.ru/big/2017/0412/68/2985f5836d2df0a881ca1f5c4802c368.png
--mask: http://i91.fastpic.ru/big/2017/0412/52/f4069aee0c849b8da3ce478475710652.png
---content: http://i89.fastpic.ru/big/2017/0412/91/b9c1002dfbca64285def7fadc6e06a91.png
GLeBaTi
Apr 12, 2017 13:06
This is not dublicate. Reproduced in 2017.1.0b1
MrLucid72
Apr 09, 2017 15:45
Really messes up our UI in 5.6f3
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'.
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.
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.