Struct ViewportContainer
Control for holding Viewport
s.
struct ViewportContainer
;
A Container
node that holds a Viewport
, automatically setting its size.
Properties
Name | Type | Description |
---|---|---|
stretch [get, set]
|
bool | If true , the viewport will be scaled to the control's size.
|
stretchShrink [get, set]
|
long | Divides 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
Name | Description |
---|---|
_input
|
|
_unhandledInput
|
|
getStretchShrink
|
|
isStretchEnabled
|
|
setStretch
|
|
setStretchShrink
|