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
    Default0
    Setterset_frame(value)
    Getterget_frame()

    Current frame to display from sprite sheet. hframes or must be greater than 1.


    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
    Setterset_hframes(value)
    Getterget_hframes()

    • bool region_enabled

    If true, texture will be cut from a larger atlas texture. See .


    DefaultRect2( 0, 0, 0, 0 )
    Setterset_region_rect(value)
    Getterget_region_rect()

    The region of the atlas texture to display. must be .



    Default1
    Setterset_vframes(value)
    Getterget_vframes()

    The number of rows in the sprite sheet.