-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.1 SubViewport.size is always (2, 2)? #77815
Comments
Is this restricted to the first frame, does it happen if you reload the scene? Could be a limitation on showing for the first time |
Please try as workaround: extends SubViewport
func _ready():
call_deferred("print_size")
func print_size():
print(size) |
Ya that fixes it. thanks. :) |
This comment was marked as outdated.
This comment was marked as outdated.
A regression from #77651. Previously, godot/scene/main/canvas_item.cpp Line 328 in 543750a
Seems unnecessary to call every time the control is shown.
Line 3143 in 543750a
Seems like it's not working as expected due to propagation order? |
Godot version
v4.1.dev.custom_build [543750a]
System information
Windows 11, Core i5-12400F, RX 6600
Issue description
(1152, 648)
(2, 2)
Thanks.
Steps to reproduce
Control
sceneSubViewportContainer
childAnchor
toFull Rect
Stretch
onSubViewport
childCamera2D
childAnchor Mode
toFixed Top Left
size
Minimal reproduction project
https://github.com/rakkarage/TestSubViewportSize
The text was updated successfully, but these errors were encountered: