Sprite3D
2D sprite node in a 3D world.
A node that displays a 2D texture in a 3D environment. The texture displayed can be a region from a larger atlas texture, or a frame from a sprite sheet animation.
- frame_changed ( )
- int frame
Default |
|
Setter | set_frame(value) |
Getter | get_frame() |
Current frame to display from sprite sheet. or vframes must be greater than 1.
- frame_coords
Coordinates of the frame to display from sprite sheet. This is as an alias for the frame property. or vframes must be greater than 1.
Default | |
Setter | set_hframes(value) |
Getter | get_hframes() |
The number of columns in the sprite sheet.
- region_enabled
If true
, texture will be cut from a larger atlas texture. See region_rect.
- region_rect
Default |
|
Setter | set_region_rect(value) |
Getter | get_region_rect() |
The region of the atlas texture to display. region_enabled must be .
- texture
Texture object to draw. If is used, this will be overridden.
Default |
|
Setter | set_vframes(value) |
Getter |
The number of rows in the sprite sheet.