Core: Integrate Ref::instantiate where possible

This commit is contained in:
Thaddeus Crews
2024-06-09 15:21:41 -05:00
parent 0f5f3bc954
commit 925b690c98
44 changed files with 81 additions and 81 deletions

View File

@@ -430,6 +430,6 @@ void TouchScreenButton::_bind_methods() {
}
TouchScreenButton::TouchScreenButton() {
unit_rect = Ref<RectangleShape2D>(memnew(RectangleShape2D));
unit_rect.instantiate();
unit_rect->set_size(Vector2(1, 1));
}