ViewportContainer

    Control for holding s.

    Note: Changing a ViewportContainer’s Control.rect_scale will cause its contents to appear distorted. To change its visual size without causing distortion, adjust the node’s margins instead (if it’s not already in a container).


    • stretch_shrink

    Divides the viewport’s effective resolution by this value while preserving its scale. This can be used to speed up rendering.

    Note: stretch must be for this property to work.