class_meshlibrary.rst 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_MeshLibrary:
  4. MeshLibrary
  5. ===========
  6. **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Library of meshes.
  11. Member Functions
  12. ----------------
  13. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | void | :ref:`clear<class_MeshLibrary_clear>` **(** **)** |
  15. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`create_item<class_MeshLibrary_create_item>` **(** :ref:`int<class_int>` id **)** |
  17. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`IntArray<class_intarray>` | :ref:`get_item_list<class_MeshLibrary_get_item_list>` **(** **)** const |
  19. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Mesh<class_mesh>` | :ref:`get_item_mesh<class_MeshLibrary_get_item_mesh>` **(** :ref:`int<class_int>` id **)** const |
  21. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`String<class_string>` | :ref:`get_item_name<class_MeshLibrary_get_item_name>` **(** :ref:`int<class_int>` id **)** const |
  23. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`NavigationMesh<class_navigationmesh>` | :ref:`get_item_navmesh<class_MeshLibrary_get_item_navmesh>` **(** :ref:`int<class_int>` id **)** const |
  25. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`Shape<class_shape>` | :ref:`get_item_shape<class_MeshLibrary_get_item_shape>` **(** :ref:`int<class_int>` id **)** const |
  27. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`int<class_int>` | :ref:`get_last_unused_item_id<class_MeshLibrary_get_last_unused_item_id>` **(** **)** const |
  29. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`remove_item<class_MeshLibrary_remove_item>` **(** :ref:`int<class_int>` id **)** |
  31. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`set_item_mesh<class_MeshLibrary_set_item_mesh>` **(** :ref:`int<class_int>` id, :ref:`Mesh<class_mesh>` mesh **)** |
  33. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`set_item_name<class_MeshLibrary_set_item_name>` **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)** |
  35. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`set_item_navmesh<class_MeshLibrary_set_item_navmesh>` **(** :ref:`int<class_int>` id, :ref:`NavigationMesh<class_navigationmesh>` navmesh **)** |
  37. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`set_item_shape<class_MeshLibrary_set_item_shape>` **(** :ref:`int<class_int>` id, :ref:`Shape<class_shape>` shape **)** |
  39. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. Description
  41. -----------
  42. Library of meshes. Contains a list of :ref:`Mesh<class_mesh>` resources, each with name and ID. Useful for GridMap or painting Terrain.
  43. Member Function Description
  44. ---------------------------
  45. .. _class_MeshLibrary_clear:
  46. - void **clear** **(** **)**
  47. Clear the library.
  48. .. _class_MeshLibrary_create_item:
  49. - void **create_item** **(** :ref:`int<class_int>` id **)**
  50. Create a new item in the library, supplied an id.
  51. .. _class_MeshLibrary_get_item_list:
  52. - :ref:`IntArray<class_intarray>` **get_item_list** **(** **)** const
  53. Return the list of items.
  54. .. _class_MeshLibrary_get_item_mesh:
  55. - :ref:`Mesh<class_mesh>` **get_item_mesh** **(** :ref:`int<class_int>` id **)** const
  56. Return the mesh of the item.
  57. .. _class_MeshLibrary_get_item_name:
  58. - :ref:`String<class_string>` **get_item_name** **(** :ref:`int<class_int>` id **)** const
  59. Return the name of the item.
  60. .. _class_MeshLibrary_get_item_navmesh:
  61. - :ref:`NavigationMesh<class_navigationmesh>` **get_item_navmesh** **(** :ref:`int<class_int>` id **)** const
  62. .. _class_MeshLibrary_get_item_shape:
  63. - :ref:`Shape<class_shape>` **get_item_shape** **(** :ref:`int<class_int>` id **)** const
  64. .. _class_MeshLibrary_get_last_unused_item_id:
  65. - :ref:`int<class_int>` **get_last_unused_item_id** **(** **)** const
  66. Get an unused id for a new item.
  67. .. _class_MeshLibrary_remove_item:
  68. - void **remove_item** **(** :ref:`int<class_int>` id **)**
  69. Remove the item.
  70. .. _class_MeshLibrary_set_item_mesh:
  71. - void **set_item_mesh** **(** :ref:`int<class_int>` id, :ref:`Mesh<class_mesh>` mesh **)**
  72. Set the mesh of the item.
  73. .. _class_MeshLibrary_set_item_name:
  74. - void **set_item_name** **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)**
  75. Set the name of the item.
  76. .. _class_MeshLibrary_set_item_navmesh:
  77. - void **set_item_navmesh** **(** :ref:`int<class_int>` id, :ref:`NavigationMesh<class_navigationmesh>` navmesh **)**
  78. .. _class_MeshLibrary_set_item_shape:
  79. - void **set_item_shape** **(** :ref:`int<class_int>` id, :ref:`Shape<class_shape>` shape **)**