Closed stryker313 closed 2 years ago
@stryker313 The minimal reproduction project failed to upload, please try again.
Also, remember you may be encountering https://github.com/godotengine/godot/issues/55145. As a workaround, try to run the project twice.
Not sure what you are expecting, but this works correctly: What you set in viewport width/height is used as a default reference size, so changing it has no effect on scaling. What you are looking for is window width/height override, which is hidden under Advanced Settings.
What you set in viewport width/height is used as a default reference size, so changing it has no effect on scaling. What you are looking for is window width/height override, which is hidden under Advanced Settings.
Needs to be better documented then, I expect many new users will run into this.
This is explained here: https://docs.godotengine.org/en/latest/tutorials/rendering/multiple_resolutions.html#stretch-mode These properties were renamed for better clarity.
It's not made clear enough in https://docs.godotengine.org/en/latest/tutorials/rendering/viewports.html, though. Scale and stretching aren't clarified enough, nor is the meaning of 'size' made clear in the API docs https://docs.godotengine.org/en/latest/classes/class_subviewport.html#class-subviewport
It's not made clear enough in docs.godotengine.org/en/latest/tutorials/rendering/viewports.html, though. Scale and stretching aren't clarified enough, nor is the meaning of 'size' made clear in the API docs docs.godotengine.org/en/latest/classes/class_subviewport.html#class-subviewport
Please open an issue for this on the godot-docs repository (and ideally a pull request for the Viewports page :slightly_smiling_face:). For the SubViewport class reference, edit https://github.com/godotengine/godot/blob/master/doc/classes/SubViewport.xml on the main Godot repository and open a pull request.
Godot version
v4.0.alpha1.official.31a7ddbf8
System information
Windows 10 GTx 1060 i5 4690k
Issue description
Stretch mode canvas does not work. All elements remain their initial size. Also plagues override resolution, but thats for another issue.
https://user-images.githubusercontent.com/83078010/150829596-441e1684-41ae-4d39-98e5-231d5dcac5c1.mp4
Steps to reproduce
Minimal reproduction project
[Uploading aaaa.zip…]()