github_url: | hide |
---|
Inherits: :ref:`Spatial<class_Spatial>` < :ref:`Node<class_Node>` < :ref:`Object<class_Object>`
Inherited By: :ref:`VisibilityEnabler<class_VisibilityEnabler>`
Detects when the node is visible on screen.
The VisibilityNotifier detects when it is visible on the screen. It also notifies when its bounding rectangle enters or exits the screen or a :ref:`Camera<class_Camera>`'s view.
:ref:`AABB<class_AABB>` | :ref:`aabb<class_VisibilityNotifier_property_aabb>` | AABB( -1, -1, -1, 2, 2, 2 ) |
:ref:`bool<class_bool>` | :ref:`is_on_screen<class_VisibilityNotifier_method_is_on_screen>` ( ) const |
Emitted when the VisibilityNotifier enters a :ref:`Camera<class_Camera>`'s view.
Emitted when the VisibilityNotifier exits a :ref:`Camera<class_Camera>`'s view.
Emitted when the VisibilityNotifier enters the screen.
Emitted when the VisibilityNotifier exits the screen.
Default | AABB( -1, -1, -1, 2, 2, 2 ) |
Setter | set_aabb(value) |
Getter | get_aabb() |
The VisibilityNotifier's bounding box.
If true
, the bounding box is on the screen.
Note: It takes one frame for the node's visibility to be assessed once added to the scene tree, so this method will return false
right after it is instantiated, even if it will be on screen in the draw pass.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。