LargeTexture

    Deprecated. A Texture capable of storing many smaller textures with offsets.

    Deprecated (will be removed in Godot 4.0). A Texture capable of storing many smaller textures with offsets.

    You can dynamically add pieces (s) to this using different offsets.

    int

    ( Vector2 ofs, texture )

    void

    int

    ( ) const

    Vector2

    ( int idx ) const

    get_piece_texture ( idx ) const

    void

    set_piece_offset ( idx, Vector2 ofs )

    void

    void

    ( Vector2 size )

    Adds texture to this LargeTexture, starting on offset .


    • void clear ( )

    Clears the LargeTexture.


    • get_piece_count ( ) const

    Returns the number of pieces currently in this LargeTexture.


    Returns the offset of the piece with the index idx.


    • Texture get_piece_texture ( idx ) const

    Returns the Texture of the piece with the index .


    • void set_piece_offset ( idx, Vector2 ofs )

    Sets the offset of the piece with the index idx to ofs.


    • void set_piece_texture ( idx, Texture texture )

    Sets the of the piece with index idx to .