Search Issue Tracker
By Design
Votes
0
Found in
2017.3.0b5
Issue ID
960206
Regression
No
[UI] Panel is centered when Canvas Render Mode is set to Screen Space - Camera
Reproduction steps:
1. Open the attached '960206_UIScreenSpaceCamera' Unity project.
2. Open and play the 'Main' scene.
- Notice, that panel is centered (Actual/Expected behavior screenshots attached).
Note:
- Panel stays in the corner of the screen when Render mode is set to Screen Space - Overlay (Expected for Screen Space - Camera ).
Reproduced with:
Editor, Standalone
5.6.4p1, 2017.1.2p1, 2017.2.0f3, ,2017.3.0b5
RESOLUTION: By design. The problem with the project was user error. The structure of the UI was as follows:
- Canvas
- Panel
- Camera
- Rest of panel contents
Any change to the RectTransform of the Panel also applies to the camera within it, so naturally the panel is always centered regardless of transform settings. The correct structure is the following:
- Canvas
- Camera
- Panel
- Rest of panel contents
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
Add comment