Something similar to VisibilityNotifier but in 4.x?

Godot Version

4.2

Question

There is a branch that has this node VisibilityNotifier VisibilityNotifier - add max_distance feature by lawnjelly · Pull Request #61544 · godotengine/godot · GitHub but that node does not exists in 4.2.

Does anyone know is there similar in 4.x?
Some mechanism that can tell if model is close or far to camera or if it even is in camera frustum?

I believe that node is now known as a VisibleOnScreenNotifier2D.

https://docs.godotengine.org/en/stable/classes/class_visibleonscreennotifier2d.html

3D version:

https://docs.godotengine.org/en/stable/classes/class_visibleonscreennotifier3d.html

2 Likes

Oh yeah, looks like it. Thanks!
But it appears that it has no way to tell how far from camera it is.

I agree. I can see the property present within the Godot 3.5 version:

https://docs.godotengine.org/en/3.5/classes/class_visibilitynotifier.html

I guess it must have been removed in Godot 4.0, but I am not sure why.

I guess I’ll have to do it myself. Thx.

1 Like