class_meshlibrary.rst 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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:`int<class_int>` | :ref:`find_item_by_name<class_MeshLibrary_find_item_by_name>` **(** :ref:`String<class_string>` name **)** const |
  19. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`PoolIntArray<class_poolintarray>` | :ref:`get_item_list<class_MeshLibrary_get_item_list>` **(** **)** const |
  21. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Mesh<class_mesh>` | :ref:`get_item_mesh<class_MeshLibrary_get_item_mesh>` **(** :ref:`int<class_int>` id **)** const |
  23. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`String<class_string>` | :ref:`get_item_name<class_MeshLibrary_get_item_name>` **(** :ref:`int<class_int>` id **)** const |
  25. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`NavigationMesh<class_navigationmesh>` | :ref:`get_item_navmesh<class_MeshLibrary_get_item_navmesh>` **(** :ref:`int<class_int>` id **)** const |
  27. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`Texture<class_texture>` | :ref:`get_item_preview<class_MeshLibrary_get_item_preview>` **(** :ref:`int<class_int>` id **)** const |
  29. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`Array<class_array>` | :ref:`get_item_shapes<class_MeshLibrary_get_item_shapes>` **(** :ref:`int<class_int>` id **)** const |
  31. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`int<class_int>` | :ref:`get_last_unused_item_id<class_MeshLibrary_get_last_unused_item_id>` **(** **)** const |
  33. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`remove_item<class_MeshLibrary_remove_item>` **(** :ref:`int<class_int>` id **)** |
  35. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`set_item_mesh<class_MeshLibrary_set_item_mesh>` **(** :ref:`int<class_int>` id, :ref:`Mesh<class_mesh>` mesh **)** |
  37. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`set_item_name<class_MeshLibrary_set_item_name>` **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)** |
  39. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | void | :ref:`set_item_navmesh<class_MeshLibrary_set_item_navmesh>` **(** :ref:`int<class_int>` id, :ref:`NavigationMesh<class_navigationmesh>` navmesh **)** |
  41. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | void | :ref:`set_item_preview<class_MeshLibrary_set_item_preview>` **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` texture **)** |
  43. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | void | :ref:`set_item_shapes<class_MeshLibrary_set_item_shapes>` **(** :ref:`int<class_int>` id, :ref:`Array<class_array>` shapes **)** |
  45. +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. Description
  47. -----------
  48. Library of meshes. Contains a list of :ref:`Mesh<class_mesh>` resources, each with name and ID. Useful for GridMap or painting Terrain.
  49. Member Function Description
  50. ---------------------------
  51. .. _class_MeshLibrary_clear:
  52. - void **clear** **(** **)**
  53. Clear the library.
  54. .. _class_MeshLibrary_create_item:
  55. - void **create_item** **(** :ref:`int<class_int>` id **)**
  56. Create a new item in the library, supplied an id.
  57. .. _class_MeshLibrary_find_item_by_name:
  58. - :ref:`int<class_int>` **find_item_by_name** **(** :ref:`String<class_string>` name **)** const
  59. .. _class_MeshLibrary_get_item_list:
  60. - :ref:`PoolIntArray<class_poolintarray>` **get_item_list** **(** **)** const
  61. Return the list of items.
  62. .. _class_MeshLibrary_get_item_mesh:
  63. - :ref:`Mesh<class_mesh>` **get_item_mesh** **(** :ref:`int<class_int>` id **)** const
  64. Return the mesh of the item.
  65. .. _class_MeshLibrary_get_item_name:
  66. - :ref:`String<class_string>` **get_item_name** **(** :ref:`int<class_int>` id **)** const
  67. Return the name of the item.
  68. .. _class_MeshLibrary_get_item_navmesh:
  69. - :ref:`NavigationMesh<class_navigationmesh>` **get_item_navmesh** **(** :ref:`int<class_int>` id **)** const
  70. .. _class_MeshLibrary_get_item_preview:
  71. - :ref:`Texture<class_texture>` **get_item_preview** **(** :ref:`int<class_int>` id **)** const
  72. .. _class_MeshLibrary_get_item_shapes:
  73. - :ref:`Array<class_array>` **get_item_shapes** **(** :ref:`int<class_int>` id **)** const
  74. .. _class_MeshLibrary_get_last_unused_item_id:
  75. - :ref:`int<class_int>` **get_last_unused_item_id** **(** **)** const
  76. Get an unused id for a new item.
  77. .. _class_MeshLibrary_remove_item:
  78. - void **remove_item** **(** :ref:`int<class_int>` id **)**
  79. Remove the item.
  80. .. _class_MeshLibrary_set_item_mesh:
  81. - void **set_item_mesh** **(** :ref:`int<class_int>` id, :ref:`Mesh<class_mesh>` mesh **)**
  82. Set the mesh of the item.
  83. .. _class_MeshLibrary_set_item_name:
  84. - void **set_item_name** **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)**
  85. Set the name of the item.
  86. .. _class_MeshLibrary_set_item_navmesh:
  87. - void **set_item_navmesh** **(** :ref:`int<class_int>` id, :ref:`NavigationMesh<class_navigationmesh>` navmesh **)**
  88. .. _class_MeshLibrary_set_item_preview:
  89. - void **set_item_preview** **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` texture **)**
  90. .. _class_MeshLibrary_set_item_shapes:
  91. - void **set_item_shapes** **(** :ref:`int<class_int>` id, :ref:`Array<class_array>` shapes **)**