Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
size
The width and height of the sub-viewport. Must be set to a value greater than or equal to 2 pixels on both dimensions. Otherwise, nothing will be displayed.
SubViewport.swift:67final var size: Vector2i { get set }
Other members in extension
Types
Type members
Instance members
var renderTargetClearMode: SubViewport.ClearMode
The clear mode when the sub-viewport is used as a render target.
var renderTargetUpdateMode: SubViewport.UpdateMode
The update mode when the sub-viewport is used as a render target.
var size2dOverride: Vector2i
The 2D size override of the sub-viewport. If either the width or height is
0
, the override is disabled.var size2dOverrideStretch: Bool
If
true
, the 2D size override affects stretch as well.