Search Issue Tracker
By Design
Votes
0
Found in
5.6.2f1
Issue ID
926167
Regression
No
Newly instantiated UI elements get incorrect values in localScale and localPosition depending on Canvas Render Mode
To reproduce:
1. Open attached project;
2. Open "scene.unity";
3. Enter Play mode;
4. Instantiate a new UI block by pressing "S";
5. Press "F" to take the block and apply localScale 1,1,1 & localPosition 0,0,0;
6. Repeat 4th step and notice the difference;
7. Change Canvas Render Mode to Camera by pressing "A";
8. Instantiate a new UI block by pressing "S";
9. Notice that UI block has localScale 935.307 and localPosition.Z = 8417.768.
Expected result: newly instantiated UI elements should inherit their prefab localScale and localPosition.
Actual result: when Canvas Render Mode is set to Overlay, newly instantiated UI elements get localScale = 1.510622, when Canvas Render Mode is set to Camera, newly instantiated UI elements get localScale = 935.307 and localPosition.Z = 8417.768 despite the fact, that prefab has localScale = 1 and localPosition (0,0,0).
Reproduced on versions: 5.5.4p2, 5.6.3f1, 2017.1.0p3, 2017.2.0b6, 2017.3.0a2.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
Add comment