Up to date

This page is up to date for Godot 4.0. If you still find outdated information, please open an issue.

VisibleOnScreenEnabler3D

Inherits: VisibleOnScreenNotifier3D < VisualInstance3D < Node3D < Node < Object

Enables certain nodes only when approximately visible.

Description

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

If you just want to receive notifications, use VisibleOnScreenNotifier3D instead.

Note: VisibleOnScreenEnabler3D uses an approximate heuristic for performance reasons. It doesn't take walls and other occlusion into account. The heuristic is an implementation detail and may change in future versions. If you need precise visibility checking, use another method such as adding an Area3D node as a child of a Camera3D node and/or Vector3.dot.

Note: VisibleOnScreenEnabler3D will not affect nodes added after scene initialization.

Properties

EnableMode

enable_mode

0

NodePath

enable_node_path

NodePath("..")


Enumerations

enum EnableMode:

EnableMode ENABLE_MODE_INHERIT = 0

EnableMode ENABLE_MODE_ALWAYS = 1

EnableMode ENABLE_MODE_WHEN_PAUSED = 2


Property Descriptions

EnableMode enable_mode = 0

There is currently no description for this property. Please help us by contributing one!


NodePath enable_node_path = NodePath("..")

  • void set_enable_node_path ( NodePath value )

  • NodePath get_enable_node_path ( )

There is currently no description for this property. Please help us by contributing one!