Operating system or device - Godot version:
Godot 2.1.3
Issue description:
When a scene with a VisibilityEnabler2D is add to the scene tree outside of the screen, VisibilityEnabler2D will not take effect, it only take effect when it enter screen and then exit screen.
Steps to reproduce:
Link to minimal example project:
NoBody care about this issue? Or am I using this node in a wrong way?
Also I have tried this in 3.0, it's the same.
Maybe I should not call set_fixed_process(true) or set_process(true) in _ready.
Just let the VisibilityEnabler2D call it.
If it's not bug, it can be closed
But it would be better to disabled it when added to screen tree outside of the screen, no matter whether it's on or off.
First of all thank you for your report and sorry for the delay.
We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.
We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us.
Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about its current status here?
For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.
Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.
Thanks in advance.
Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.
Still relevant
Relevant code in scene/2d/visibility_notifier_2d.cpp if anyone wants to debug further.
I don't seem to be able to replicate the issue. Maybe it was fixed already?
@alexzheng if you still experience this, can you provide clearer instructions how to replicate the issue - or even better, a test scene?
Godot version:
Godot Engine v3.1.beta2.official
OS/device including version:
Sony VAIO SVE14A15FBW:
Issue description:
VisibilityEnabler2D doesn't disable elements that start off-screen until they (enter>>exit) the screen for the first time.
This behavior defeats the purpose of the node, since you must manually disable everything at start, which is already the scope of VisibilityNotifier2D.
Steps to reproduce:
Minimal reproduction project:
VisibilityEnabler2D Bug.zip


Most helpful comment
I can confirm this still in 2019
Godot version:
Godot Engine v3.1.beta2.official
OS/device including version:
Sony VAIO SVE14A15FBW:
Issue description:
VisibilityEnabler2D doesn't disable elements that start off-screen until they (enter>>exit) the screen for the first time.
Steps to reproduce:
Minimal reproduction project:
VisibilityEnabler2D Bug.zip
At very start:
After enter>>exit: