A container that displays the contents of underlying SubViewport child nodes. It uses the combined size of the SubViewports as minimum size, unless stretch is enabled.
If true
, the sub-viewport will be automatically resized to the control's size.
Note: If true
, this will prohibit changing SubViewport.size of its children manually.
Divides the sub-viewport's effective resolution by this value while preserving its scale. This can be used to speed up rendering.
For example, a 1280×720 sub-viewport with stretch_shrink set to 2
will be rendered at 640×360 while occupying the same size in the container.
Note: stretch must be true
for this property to work.
Virtual method to be implemented by the user. If it returns true
, the event
is propagated to SubViewport children. Propagation doesn't happen if it returns false
. If the function is not implemented, all events are propagated to SubViewports.