Struct ViewportContainer

Control for holding Viewports.

struct ViewportContainer ;

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

Properties

NameTypeDescription
stretch[get, set] boolIf true, the viewport will be scaled to the control's size.
stretchShrink[get, set] longDivides the viewport's effective resolution by this value while preserving its scale. This can be used to speed up rendering. For example, a 1280×720 viewport with stretchShrink 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.

Methods

NameDescription
_input
_unhandledInput
getStretchShrink
isStretchEnabled
setStretch
setStretchShrink