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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
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.