Search Issue Tracker
By Design
Votes
0
Found in
2018.2.0a6
2019.2.0b4
Issue ID
1157947
Regression
Yes
[Camera] Preview window doesn't maintain its size on assigning render texture
Preview windows shrink on assigning render texture,
Steps to Repro:
1. Create a new Project
2. Project window > right-click > Render Texture
3. Hierarchy > Main Camera > assign Render Texture
Actual Result:
1. Main Camera preview windows shrink
2. It looks like Preview's size is depended on render texture size, however, if render texture size is increased to 5000x5000 still the preview window is shrunken
Expected Result:
Main camera window maintains its size
Environment:
Windows and Mac
Occurring with:
2019.3.0a4, 2019.2.0b4, 2018.3.13f1, 2018.2.7f1, 2018.2.0a6
Working with:
2018.2.0a5, 2018.1.9f2, 2017.4.17f1
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
The preview camera aligns to the target texture aspect which is expected behavior.
Without setting target texture on the camera, the backbuffer of the camera (you can still treat it as a hidden target texture) has the size that is aligned with the GameView settings. So you can see the preview changes it's aspect according to the GameView setting.
With target texture, the camera renders into this texture instead (not backbuffer) so it will not take GameView settings. Thus the preview would behave the same.