0
\$\begingroup\$

Visibility Enabler

I'm confused about the use of the Visibility enabler node in godot. I've read the documentation and tried it out both stand-alone and as a child without success.

I set the parent to print a String during its _process function. Despite adding the enabler it continued to print despite being off screen.

How do I set it up so that It actually disables anything?

\$\endgroup\$
2
\$\begingroup\$

I think what you disabled was the canvas visibility. That just disables the render's process for the nodes and its childs. If you really want to stop the _process(delta) method. You must find the Stop property, which by default is inherited, and set it to stop.

You can also stop the call of process by setting set_process to false through the script.

\$\endgroup\$
  • \$\begingroup\$ I'm sorry, disabling canvas visibility disables process for just any node or children of the enabler? \$\endgroup\$ – Kennichi Nitta Mar 31 at 1:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.