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 ( )
- frame
Default | 0 |
Setter | set_frame(value) |
Getter | get_frame() |
Current frame to display from sprite sheet. hframes or must be greater than 1.
- Vector2 frame_coords
Coordinates of the frame to display from sprite sheet. This is as an alias for the property. hframes or must be greater than 1.
Default | |
Setter | set_hframes(value) |
Getter | get_hframes() |
- bool region_enabled
If true
, texture will be cut from a larger atlas texture. See .
- Rect2 region_rect
Default | Rect2( 0, 0, 0, 0 ) |
Setter | set_region_rect(value) |
Getter | get_region_rect() |
The region of the atlas texture to display. must be .
- Texture texture
Default | 1 |
Setter | set_vframes(value) |
Getter | get_vframes() |
The number of rows in the sprite sheet.