Search Issue Tracker
Duplicate
Votes
0
Found in
2017.3.1p1
2018.1.0b10
2018.2.0a3
Issue ID
1010659
Regression
Yes
Setting RecTransform.pivot via script offsets the GameObject unless it is selected in the Editor Hierarchy window
How to reproduce:
1. Open attached project ("PivotSettingIssue.zip")
2. Open Scene called "BugDemonstration"
3. Play the game
4. In Hierarchy select Canvas -> BugDemoText
5. Make Game window active by pressing somewhere in the Game view
6. Tap "SpaceBar" multiple times
7. In Hierarchy deselect BugDemoText, by clicking on another GameObject
8. Make Game window active by pressing somewhere in the Game view
9. Tap "SpaceBar" multiple times
Expected result: No matter which GameObject is selected the "BugDemoText" GameObject should not move in Game window when changing its Pivot
Actual result: When "BugDemoText" is not selected and when you are changing its Pivot GameObject moves
First introduced in: 2017.3.1p1
Reproducible with: 2018.2.0a4, 2018.2.0a3, 2018.1.0b11, 2018.1.0b10, 2017.3.1p4, 2017.3.1p1
Not reproducible with: 2018.2.0a2, 2018.2.0a1, 2018.1.0b9, 2018.1.0a1, 2017.3.1f1, 2017.2.2p1, 2017.1.3p1, 5.6.5p2, 5.6.0a1
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
This is a duplicate of issue #1009730