VisibilityEnabler you can pause animations and freeze physics as well as get information that given object just entered/exited the screen.
VisibilityEnabler you need to add it as a child to any spatial node.
You will be able to define concrete size for this enabler from the editor (violet box that you can resize inside the editor), or from the code via
You will be able to use checkboxes (
Pause animations |
Freeze Bodies) as well.
But usually the main reason to use
Visibility Enabler node is to use it's signals, there are couple interesting signals that you can use:
Usually I'm using
exit_screen to turn on/off processing of a script (basically