VisibilityEnabler2D can not disable Nodes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By alexzheng
:warning: Old Version Published before Godot 3 was released.

the scene is a node with a VisibilityEnabler2D as its child.
Node2D
–VisibilityEnabler2D

When enable fixed process parent, and add the node outside the screen, the _fixed_process attach to the Node2D will still be called.

If you think there is a bug you should report it on Github with an example project.

Zylann | 2017-06-27 13:45

I reported but no any response.
I ask here just to confirm if it’s a bug or am I miss something?

alexzheng | 2017-06-27 14:07

Afaik, VisibilityEnabler will only show and hide its children according to its presence inside the viewport.

Godot has no concept of enabling/disabling nodes like Unity. Show/Hide will only change its visibility. It doesn’t stop the script from running.

vinod | 2017-06-29 15:32

Actually VisibilityEnabler can enable or disable stuff depending on visibility, so it doesn’t just toggles visibility, hence the name *Enabler. This is a list of what it can toggle: http://docs.godotengine.org/en/stable/classes/class_visibilityenabler2d.html#numeric-constants

Zylann | 2017-06-29 18:48