You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user