Inherits: Container < Control < CanvasItem < Node < Object

Category: Core

Brief Description

Control for holding Viewports.


bool stretch false
int stretch_shrink 1


A Container node that holds a Viewport, automatically setting its size.

Property Descriptions

Default false
Setter set_stretch(value)
Getter is_stretch_enabled()

If true, the viewport will be scaled to the control’s size.

  • int stretch_shrink
Default 1
Setter set_stretch_shrink(value)
Getter get_stretch_shrink()