mirror of
https://github.com/tiennm99/godot.git
synced 2026-07-19 22:18:59 +00:00
New API for visibility in both CanvasItem and Spatial
visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience
This commit is contained in:
@@ -45,7 +45,7 @@ void VisualInstance::_update_visibility() {
|
||||
return;
|
||||
|
||||
_change_notify("visible");
|
||||
VS::get_singleton()->instance_set_visible(get_instance(),is_visible());
|
||||
VS::get_singleton()->instance_set_visible(get_instance(),is_visible_in_tree());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user