Add Viewport setting for picking only first-encountered CanvasItem physics object
This commit is contained in:
@ -254,6 +254,7 @@ private:
|
||||
|
||||
bool physics_object_picking = false;
|
||||
bool physics_object_picking_sort = false;
|
||||
bool physics_object_picking_first_only = false;
|
||||
List<Ref<InputEvent>> physics_picking_events;
|
||||
ObjectID physics_object_capture;
|
||||
ObjectID physics_object_over;
|
||||
@ -595,6 +596,8 @@ public:
|
||||
bool get_physics_object_picking();
|
||||
void set_physics_object_picking_sort(bool p_enable);
|
||||
bool get_physics_object_picking_sort();
|
||||
void set_physics_object_picking_first_only(bool p_enable);
|
||||
bool get_physics_object_picking_first_only();
|
||||
|
||||
Variant gui_get_drag_data() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user