mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Added option in project settings to draw Shape2D outlines
Disabling collision outlines can be useful for performance when the game is running and many collision shapes are displayed.
This commit is contained in:
parent
aa7c298788
commit
d94cd42ccd
8 changed files with 54 additions and 25 deletions
|
|
@ -2039,6 +2039,8 @@ SceneTree::SceneTree() {
|
|||
collision_debug_contacts = GLOBAL_DEF("debug/shapes/collision/max_contacts_displayed", 10000);
|
||||
ProjectSettings::get_singleton()->set_custom_property_info("debug/shapes/collision/max_contacts_displayed", PropertyInfo(Variant::INT, "debug/shapes/collision/max_contacts_displayed", PROPERTY_HINT_RANGE, "0,20000,1")); // No negative
|
||||
|
||||
GLOBAL_DEF("debug/shapes/collision/draw_2d_outlines", true);
|
||||
|
||||
tree_version = 1;
|
||||
physics_process_time = 1;
|
||||
idle_process_time = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue