- frame
long frame [@property getter]
long frame [@property setter]
Current frame to display from sprite sheet. hframes or vframes must be greater than 1.
- frameCoords
Vector2 frameCoords [@property getter]
Vector2 frameCoords [@property setter]
Coordinates of the frame to display from sprite sheet. This is as an alias for the frame property. hframes or vframes must be greater than 1.
- hframes
long hframes [@property getter]
long hframes [@property setter]
The number of columns in the sprite sheet.
- regionEnabled
bool regionEnabled [@property getter]
bool regionEnabled [@property setter]
If true, texture will be cut from a larger atlas texture. See regionRect.
- regionRect
Rect2 regionRect [@property getter]
Rect2 regionRect [@property setter]
The region of the atlas texture to display. regionEnabled must be true.
- texture
Texture texture [@property getter]
Texture texture [@property setter]
Texture object to draw. If GeometryInstance.materialOverride is used, this will be overridden.
- vframes
long vframes [@property getter]
long vframes [@property setter]
The number of rows in the sprite sheet.
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.