class_navigationmeshinstance.rst 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the NavigationMeshInstance.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_NavigationMeshInstance:
  6. NavigationMeshInstance
  7. ======================
  8. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Node that instances navigation meshes into a scenario.
  10. Description
  11. -----------
  12. NavigationMeshInstance is a node that takes a :ref:`NavigationMesh<class_NavigationMesh>` resource and adds it to the current scenario by creating an instance of it.
  13. Properties
  14. ----------
  15. +---------------------------------------------+---------------------------------------------------------------+----------+
  16. | :ref:`bool<class_bool>` | :ref:`enabled<class_NavigationMeshInstance_property_enabled>` | ``true`` |
  17. +---------------------------------------------+---------------------------------------------------------------+----------+
  18. | :ref:`NavigationMesh<class_NavigationMesh>` | :ref:`navmesh<class_NavigationMeshInstance_property_navmesh>` | |
  19. +---------------------------------------------+---------------------------------------------------------------+----------+
  20. Property Descriptions
  21. ---------------------
  22. .. _class_NavigationMeshInstance_property_enabled:
  23. - :ref:`bool<class_bool>` **enabled**
  24. +-----------+--------------------+
  25. | *Default* | ``true`` |
  26. +-----------+--------------------+
  27. | *Setter* | set_enabled(value) |
  28. +-----------+--------------------+
  29. | *Getter* | is_enabled() |
  30. +-----------+--------------------+
  31. If ``true``, the navigation mesh will be used by :ref:`Navigation<class_Navigation>`.
  32. ----
  33. .. _class_NavigationMeshInstance_property_navmesh:
  34. - :ref:`NavigationMesh<class_NavigationMesh>` **navmesh**
  35. +----------+----------------------------+
  36. | *Setter* | set_navigation_mesh(value) |
  37. +----------+----------------------------+
  38. | *Getter* | get_navigation_mesh() |
  39. +----------+----------------------------+
  40. The :ref:`NavigationMesh<class_NavigationMesh>` resource for the instance.
  41. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  42. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  43. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`