Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2017.3.X
Votes
0
Found in
2017.3.0a1
2017.3.0f3
Issue ID
980560
Regression
Yes
Reparenting UI after setting "anchorMin" and "anchorMax" with scripts causes wrong Rect Transform values
Reproduction steps:
1. Open "UIBug.zip" project
2. Open "Test" scene
3. In the Hierarchy window go to "Canvas" -> "Item" and switch "RedBox" and "BlueBox" position in the hierarchy
4. Enter Play more
Expected Result: The Red and Blue boxes should stay in the same position within the "Item" GO (Use workarounds to see correct behavior)
Actual Result: The "RedBox" Rect Transform gets unexpected values
Fixed in: 2018.1.0b5
Reproduced with: 2018.1.0b1, 2017.3.0p1, 2017.3.0f2, 2017.3.0b1
Did not reproduce on: 2017.2.1p1
Workarounds:
Switch the hierarchy order of the "RedBox" and "BlueBox"
GameObject "Number" is disabled
"SetParent()" call in "ReparentObjectcs" script is moved before setting the "anchorMin" and "anchorMax"
Note:
Only reproduces if "TextMeshPro" is included in the project
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment