• 2D
  • How use draw_texture_rect_region?

void draw_texture_rect_region(texture: Texture, rect: Rect2, src_rect: Rect2, modulate: Color = Color( 1, 1, 1, 1 ), transpose: bool = false, normal_map: Texture = null, clip_uv: bool = true)

what is rect? position with size of texture? what is src_rect? desired position and size of region? or vice-versa?

nevermind, solved.

rect is (desired position, desired size) within scene where you whant to place your drawing. scr_rect is (desired position, desired size) within texture where you whant to grab area to draw