Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
UpdateMode
SubViewport.swift:35enum UpdateMode
Cases
case disabled
Do not update the render target.
case once
Update the render target once, then switch to .updateDisabled.
case whenVisible
Update the render target only when it is visible. This is the default value.
case whenParentVisible
Update the render target only when its parent is visible.
case always
Always update the render target.
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 size: Vector2i
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.
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.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.