0 votes

I'm trying to figure out how to use the VisibilityEnabler2D node but I'm unsuccesfull:
this is my setup

editor setup

It looks like the setup in Enemy from the 2d platformer demo but when I see if it is actually working, it looks like it's not:

watch

The same breakpoint against the Enemy in platformer2d demo instead is looking good:

platformer watch

Am I missing something?

in Engine by (109 points)

1 Answer

0 votes

Check this tutorial on the node!

https://www.youtube.com/watch?v=0R40hoYeL8I
VisibilityNotifier / VisibilityNotifier2D ► Nodes in Godot Engine [5:59]

It Demonstrating how you can use the VisibilityNotifier2D (which works the same way as VisibilityNotifier for 3D)

The VisibilityEnabler will disable RigidBody and AnimationPlayer nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself."

by (20 points)

Note this is a very old question and refers to an older version of Godot. Make sure to check the date of questions you're answering.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.