Sprite2D

Inherits: Node2D < CanvasItem < Node < Object

There is currently no description for this class. Please help us by contributing one!

Properties

bool

centered

true

bool

flip_h

false

bool

flip_v

false

int

frame

0

Vector2i

frame_coords

Vector2i(0, 0)

int

hframes

1

Vector2

offset

Vector2(0, 0)

bool

region_enabled

false

bool

region_filter_clip_enabled

false

Rect2

region_rect

Rect2(0, 0, 0, 0)

Texture2D

texture

int

vframes

1

Methods

Rect2

get_rect ( ) const

bool

is_pixel_opaque ( Vector2 pos ) const


Signals

frame_changed ( )

There is currently no description for this signal. Please help us by contributing one!


texture_changed ( )

There is currently no description for this signal. Please help us by contributing one!


Property Descriptions

bool centered = true

  • void set_centered ( bool value )

  • bool is_centered ( )

There is currently no description for this property. Please help us by contributing one!


bool flip_h = false

  • void set_flip_h ( bool value )

  • bool is_flipped_h ( )

There is currently no description for this property. Please help us by contributing one!


bool flip_v = false

  • void set_flip_v ( bool value )

  • bool is_flipped_v ( )

There is currently no description for this property. Please help us by contributing one!


int frame = 0

  • void set_frame ( int value )

  • int get_frame ( )

There is currently no description for this property. Please help us by contributing one!


Vector2i frame_coords = Vector2i(0, 0)

There is currently no description for this property. Please help us by contributing one!


int hframes = 1

  • void set_hframes ( int value )

  • int get_hframes ( )

There is currently no description for this property. Please help us by contributing one!


Vector2 offset = Vector2(0, 0)

There is currently no description for this property. Please help us by contributing one!


bool region_enabled = false

  • void set_region_enabled ( bool value )

  • bool is_region_enabled ( )

There is currently no description for this property. Please help us by contributing one!


bool region_filter_clip_enabled = false

  • void set_region_filter_clip_enabled ( bool value )

  • bool is_region_filter_clip_enabled ( )

There is currently no description for this property. Please help us by contributing one!


Rect2 region_rect = Rect2(0, 0, 0, 0)

  • void set_region_rect ( Rect2 value )

  • Rect2 get_region_rect ( )

There is currently no description for this property. Please help us by contributing one!


Texture2D texture

There is currently no description for this property. Please help us by contributing one!


int vframes = 1

  • void set_vframes ( int value )

  • int get_vframes ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

Rect2 get_rect ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_pixel_opaque ( Vector2 pos ) const

There is currently no description for this method. Please help us by contributing one!