class_visibleonscreenenabler3d.rst 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/VisibleOnScreenEnabler3D.xml.
  6. .. _class_VisibleOnScreenEnabler3D:
  7. VisibleOnScreenEnabler3D
  8. ========================
  9. **Inherits:** :ref:`VisibleOnScreenNotifier3D<class_VisibleOnScreenNotifier3D>` **<** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Enables certain nodes only when approximately visible.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. The VisibleOnScreenEnabler3D will disable :ref:`RigidBody3D<class_RigidBody3D>` and :ref:`AnimationPlayer<class_AnimationPlayer>` nodes when they are not visible. It will only affect other nodes within the same scene as the VisibleOnScreenEnabler3D itself.
  15. If you just want to receive notifications, use :ref:`VisibleOnScreenNotifier3D<class_VisibleOnScreenNotifier3D>` instead.
  16. \ **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 :ref:`Area3D<class_Area3D>` node as a child of a :ref:`Camera3D<class_Camera3D>` node and/or :ref:`Vector3.dot<class_Vector3_method_dot>`.
  17. \ **Note:** VisibleOnScreenEnabler3D will not affect nodes added after scene initialization.
  18. .. rst-class:: classref-reftable-group
  19. Properties
  20. ----------
  21. .. table::
  22. :widths: auto
  23. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+--------------------+
  24. | :ref:`EnableMode<enum_VisibleOnScreenEnabler3D_EnableMode>` | :ref:`enable_mode<class_VisibleOnScreenEnabler3D_property_enable_mode>` | ``0`` |
  25. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+--------------------+
  26. | :ref:`NodePath<class_NodePath>` | :ref:`enable_node_path<class_VisibleOnScreenEnabler3D_property_enable_node_path>` | ``NodePath("..")`` |
  27. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+--------------------+
  28. .. rst-class:: classref-section-separator
  29. ----
  30. .. rst-class:: classref-descriptions-group
  31. Enumerations
  32. ------------
  33. .. _enum_VisibleOnScreenEnabler3D_EnableMode:
  34. .. rst-class:: classref-enumeration
  35. enum **EnableMode**:
  36. .. _class_VisibleOnScreenEnabler3D_constant_ENABLE_MODE_INHERIT:
  37. .. rst-class:: classref-enumeration-constant
  38. :ref:`EnableMode<enum_VisibleOnScreenEnabler3D_EnableMode>` **ENABLE_MODE_INHERIT** = ``0``
  39. .. _class_VisibleOnScreenEnabler3D_constant_ENABLE_MODE_ALWAYS:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`EnableMode<enum_VisibleOnScreenEnabler3D_EnableMode>` **ENABLE_MODE_ALWAYS** = ``1``
  42. .. _class_VisibleOnScreenEnabler3D_constant_ENABLE_MODE_WHEN_PAUSED:
  43. .. rst-class:: classref-enumeration-constant
  44. :ref:`EnableMode<enum_VisibleOnScreenEnabler3D_EnableMode>` **ENABLE_MODE_WHEN_PAUSED** = ``2``
  45. .. rst-class:: classref-section-separator
  46. ----
  47. .. rst-class:: classref-descriptions-group
  48. Property Descriptions
  49. ---------------------
  50. .. _class_VisibleOnScreenEnabler3D_property_enable_mode:
  51. .. rst-class:: classref-property
  52. :ref:`EnableMode<enum_VisibleOnScreenEnabler3D_EnableMode>` **enable_mode** = ``0``
  53. .. rst-class:: classref-property-setget
  54. - void **set_enable_mode** **(** :ref:`EnableMode<enum_VisibleOnScreenEnabler3D_EnableMode>` value **)**
  55. - :ref:`EnableMode<enum_VisibleOnScreenEnabler3D_EnableMode>` **get_enable_mode** **(** **)**
  56. .. container:: contribute
  57. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_VisibleOnScreenEnabler3D_property_enable_node_path:
  61. .. rst-class:: classref-property
  62. :ref:`NodePath<class_NodePath>` **enable_node_path** = ``NodePath("..")``
  63. .. rst-class:: classref-property-setget
  64. - void **set_enable_node_path** **(** :ref:`NodePath<class_NodePath>` value **)**
  65. - :ref:`NodePath<class_NodePath>` **get_enable_node_path** **(** **)**
  66. .. container:: contribute
  67. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  68. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  69. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  70. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  71. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  72. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  73. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`