emulate_mouse_drag_and_drop#

async omni.kit.ui_test.emulate_mouse_drag_and_drop(
start_pos,
end_pos,
right_click=False,
human_delay_speed: int = 4,
)#

Emulate Mouse Drag & Drop. Click at start position and slowly move to end position.

Parameters:
  • start_pos (Vec2) – Starting position for drag operation.

  • end_pos (Vec2) – Ending position for drop operation.

  • right_click (bool) – Whether to use right mouse button for dragging.

  • human_delay_speed (int) – Speed multiplier for human-like delays.