mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-18 06:26:16 +00:00
Remove the selection rect for nodes that do not require it
This commit is contained in:
@@ -335,6 +335,10 @@ Rect2 TouchScreenButton::_edit_get_rect() const {
|
||||
return Rect2(Size2(), texture->get_size());
|
||||
}
|
||||
|
||||
bool TouchScreenButton::_edit_use_rect() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void TouchScreenButton::set_visibility_mode(VisibilityMode p_mode) {
|
||||
visibility = p_mode;
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user