Try waiting for one frame before capturing the image: https://github.com/godotengine/godot-demo-projects/blob/master/viewport/screen_capture/screen_capture.gd Author msc509 commented on Jan 3, 2021 Try waiting for one frame before capturing the image: https://github.com/godotengine/godot-demo...
Improve ViewportTexture::get_size #101944 Open scgm0 wants to merge 1 commit into godotengine:master from scgm0:Add-`RenderingServe.viewport_get_size` Open Improve ViewportTexture::get_size #101944 scgm0 wants to merge 1 commit into godotengine:master from scgm0:Add-`RenderingServe....
Godot version 3.5 stable, 4.0 Alpha 15 System information Win Issue description In both Godot 3.5 stable and Godot 4 Alpha 15 (and earlier) if you try to get the Rect2 of a Sprite using get_rect(), the resulting Rect2() will have the cor...
This method is called constantly on viewport movement and whenLine2Dnode is selected. Current implementation is not bottleneck for editor, but objectively not as effective as it could be even without doing over-optimization. This PR replaces excessiveexpand_to()calls in for-loop with finding minim...