I am trying to scale Godot Engine 3DNode, Subviewport, Subviewport Container.
When i am scaling it with Resized Signal with Parent's size, able to scale it up but not scale down. So Resizing work only when scaling up.
I don't want to use Stretch
settings as they scale the node with fixed size rather than resizing them to fit or match into new resolution.
I have prepared a Test Project understanding this. Google Drive Link for Test Project . In this project the Subviewport, Subviewport container is able to scale up but not scale down.
When we are scaling up you can see that the Sample Chair Scene scales up which is the Subviewport Container and SubViewport. When we scale down the window there is now change it stays like that and no not scale down with screen.
I am observing signal resized on the parent if parent is resized the child is resized. (By resize i mean i do self.size = get_parent().size
).
Need help to figure this out.
There is a single checkbox for enabling Stretch for SubviewportContainer
. Turn the stretch on option for properties of SubviewportContainer
.
There is no requirement of resizing code for Subviewport
, only put Resizing for the SubviewportContainer
which will manage the resizing of its child Subviewport
.