Core: Integrate Ref::instantiate where possible
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user