Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
texture
The node’s Texture2D
resource.
final var texture: Texture2D? { get set }
Other members in extension
Types
Type members
Instance members
var expandMode: TextureRect.ExpandMode
Defines how minimum size is determined based on the texture’s size. See
ExpandMode
for options.var flipH: Bool
If
true
, texture is flipped horizontally.var flipV: Bool
If
true
, texture is flipped vertically.var stretchMode: TextureRect.StretchMode
Controls the texture’s behavior when resizing the node’s bounding rectangle. See
StretchMode
.