Search Issue Tracker
By Design
Votes
4
Found in
2017.4.0f1
2018.4.0f1
2019.2.0a1
2019.3.0a1
2019.3.0a12
2020.1.0a1
Issue ID
1178462
Regression
No
Canvas prefab elements are shown differently in Scene and Prefab Editor when Canvas Scaler is set to "Scale With Screen"
How to reproduce:
1. Open attached project "PrefabMode_694618.zip" and scene "Sample_2"
2. In Hierarchy window, Open "Canvas" -> "Root" -> "Top" -> "TopBar" prefab editing (the same with "Middle" and "BottomBar")
3. Compare the TopBar UI in the scene and in the Prefab Editor
Expected result: the UI between scene and prefab editor looks the same
Actual result: the UI in prefab editor scale/aspect ratio is incorrect
Reproducible with: 2018.4.8f1, 2019.2.3f1, 2019.3.0b1, 2020.1.0a1
Could not test with: 2017.4 due to older prefab system
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (2020.1.X):
For UI Prefabs that are set to stretch based on parent size, it's expected they will have a different size in Prefab Mode in isolation that they have in the scene, since they are under a parent with a different size in Prefab Mode compared to whatever parent they are under in the scene.
In 2020.1 the Prefab Mode in Context feature will address this to have UI Prefabs look the same in Prefab Mode in Context as they do in the scene.