class_meshlibrary.rst 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the MeshLibrary.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_MeshLibrary:
  5. MeshLibrary
  6. ===========
  7. **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Library of meshes.
  12. Member Functions
  13. ----------------
  14. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`clear<class_MeshLibrary_clear>` **(** **)** |
  16. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`create_item<class_MeshLibrary_create_item>` **(** :ref:`int<class_int>` id **)** |
  18. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`find_item_by_name<class_MeshLibrary_find_item_by_name>` **(** :ref:`String<class_string>` name **)** const |
  20. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`PoolIntArray<class_poolintarray>` | :ref:`get_item_list<class_MeshLibrary_get_item_list>` **(** **)** const |
  22. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Mesh<class_mesh>` | :ref:`get_item_mesh<class_MeshLibrary_get_item_mesh>` **(** :ref:`int<class_int>` id **)** const |
  24. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`String<class_string>` | :ref:`get_item_name<class_MeshLibrary_get_item_name>` **(** :ref:`int<class_int>` id **)** const |
  26. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`NavigationMesh<class_navigationmesh>` | :ref:`get_item_navmesh<class_MeshLibrary_get_item_navmesh>` **(** :ref:`int<class_int>` id **)** const |
  28. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`Texture<class_texture>` | :ref:`get_item_preview<class_MeshLibrary_get_item_preview>` **(** :ref:`int<class_int>` id **)** const |
  30. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Array<class_array>` | :ref:`get_item_shapes<class_MeshLibrary_get_item_shapes>` **(** :ref:`int<class_int>` id **)** const |
  32. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`int<class_int>` | :ref:`get_last_unused_item_id<class_MeshLibrary_get_last_unused_item_id>` **(** **)** const |
  34. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`remove_item<class_MeshLibrary_remove_item>` **(** :ref:`int<class_int>` id **)** |
  36. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`set_item_mesh<class_MeshLibrary_set_item_mesh>` **(** :ref:`int<class_int>` id, :ref:`Mesh<class_mesh>` mesh **)** |
  38. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | void | :ref:`set_item_name<class_MeshLibrary_set_item_name>` **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)** |
  40. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | void | :ref:`set_item_navmesh<class_MeshLibrary_set_item_navmesh>` **(** :ref:`int<class_int>` id, :ref:`NavigationMesh<class_navigationmesh>` navmesh **)** |
  42. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | void | :ref:`set_item_preview<class_MeshLibrary_set_item_preview>` **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` texture **)** |
  44. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | void | :ref:`set_item_shapes<class_MeshLibrary_set_item_shapes>` **(** :ref:`int<class_int>` id, :ref:`Array<class_array>` shapes **)** |
  46. +----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. Description
  48. -----------
  49. Library of meshes. Contains a list of :ref:`Mesh<class_mesh>` resources, each with name and ID. Useful for GridMap or painting Terrain.
  50. Member Function Description
  51. ---------------------------
  52. .. _class_MeshLibrary_clear:
  53. - void **clear** **(** **)**
  54. Clear the library.
  55. .. _class_MeshLibrary_create_item:
  56. - void **create_item** **(** :ref:`int<class_int>` id **)**
  57. Create a new item in the library, supplied an id.
  58. .. _class_MeshLibrary_find_item_by_name:
  59. - :ref:`int<class_int>` **find_item_by_name** **(** :ref:`String<class_string>` name **)** const
  60. .. _class_MeshLibrary_get_item_list:
  61. - :ref:`PoolIntArray<class_poolintarray>` **get_item_list** **(** **)** const
  62. Return the list of items.
  63. .. _class_MeshLibrary_get_item_mesh:
  64. - :ref:`Mesh<class_mesh>` **get_item_mesh** **(** :ref:`int<class_int>` id **)** const
  65. Return the mesh of the item.
  66. .. _class_MeshLibrary_get_item_name:
  67. - :ref:`String<class_string>` **get_item_name** **(** :ref:`int<class_int>` id **)** const
  68. Return the name of the item.
  69. .. _class_MeshLibrary_get_item_navmesh:
  70. - :ref:`NavigationMesh<class_navigationmesh>` **get_item_navmesh** **(** :ref:`int<class_int>` id **)** const
  71. .. _class_MeshLibrary_get_item_preview:
  72. - :ref:`Texture<class_texture>` **get_item_preview** **(** :ref:`int<class_int>` id **)** const
  73. .. _class_MeshLibrary_get_item_shapes:
  74. - :ref:`Array<class_array>` **get_item_shapes** **(** :ref:`int<class_int>` id **)** const
  75. .. _class_MeshLibrary_get_last_unused_item_id:
  76. - :ref:`int<class_int>` **get_last_unused_item_id** **(** **)** const
  77. Get an unused id for a new item.
  78. .. _class_MeshLibrary_remove_item:
  79. - void **remove_item** **(** :ref:`int<class_int>` id **)**
  80. Remove the item.
  81. .. _class_MeshLibrary_set_item_mesh:
  82. - void **set_item_mesh** **(** :ref:`int<class_int>` id, :ref:`Mesh<class_mesh>` mesh **)**
  83. Set the mesh of the item.
  84. .. _class_MeshLibrary_set_item_name:
  85. - void **set_item_name** **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)**
  86. Set the name of the item.
  87. .. _class_MeshLibrary_set_item_navmesh:
  88. - void **set_item_navmesh** **(** :ref:`int<class_int>` id, :ref:`NavigationMesh<class_navigationmesh>` navmesh **)**
  89. .. _class_MeshLibrary_set_item_preview:
  90. - void **set_item_preview** **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` texture **)**
  91. .. _class_MeshLibrary_set_item_shapes:
  92. - void **set_item_shapes** **(** :ref:`int<class_int>` id, :ref:`Array<class_array>` shapes **)**