Inherits: VisibleOnScreenNotifier3D < VisualInstance3D < Node3D < Node < Object
A box-shaped region of 3D space that, when visible on screen, enables a target node.
VisibleOnScreenEnabler3D contains a box-shaped region of 3D space and a target node. The target node will be automatically enabled (via its Node.process_mode property) when any part of this region becomes visible on the screen, and automatically disabled otherwise. This can for example be used to activate enemies only when the player approaches them.
See VisibleOnScreenNotifier3D if you only want to be notified when the region is visible on screen.
Note: VisibleOnScreenEnabler3D uses an approximate heuristic that doesn't take walls and other occlusion into account, unless occlusion culling is used. It also won't function unless Node3D.visible is set to true.
| ||
|
0
Corresponds to Node.PROCESS_MODE_INHERIT.
1
Corresponds to Node.PROCESS_MODE_ALWAYS.
2
Corresponds to Node.PROCESS_MODE_WHEN_PAUSED.
0
Determines how the target node is enabled. Corresponds to ProcessMode. When the node is disabled, it always uses Node.PROCESS_MODE_DISABLED.
NodePath("..")
The path to the target node, relative to the VisibleOnScreenEnabler3D. The target node is cached; it's only assigned when setting this property (if the VisibleOnScreenEnabler3D is inside the scene tree) and every time the VisibleOnScreenEnabler3D enters the scene tree. If the path is invalid, an error will be printed in the editor and no node will be affected.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_visibleonscreenenabler3d.html