.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_MeshLibrary: MeshLibrary =========== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Library of meshes. Member Functions ---------------- +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`create_item` **(** :ref:`int` id **)** | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_item_name` **(** :ref:`int` id, :ref:`String` name **)** | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_item_mesh` **(** :ref:`int` id, :ref:`Mesh` mesh **)** | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_item_shape` **(** :ref:`int` id, :ref:`Shape` shape **)** | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_item_name` **(** :ref:`int` id **)** const | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Mesh` | :ref:`get_item_mesh` **(** :ref:`int` id **)** const | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Shape` | :ref:`get_item_shape` **(** :ref:`int` id **)** const | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_item` **(** :ref:`int` id **)** | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** **)** | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :ref:`IntArray` | :ref:`get_item_list` **(** **)** const | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_last_unused_item_id` **(** **)** const | +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ Description ----------- Library of meshes. Contains a list of :ref:`Mesh` resources, each with name and ID. Useful for GridMap or painting Terrain. Member Function Description --------------------------- .. _class_MeshLibrary_create_item: - void **create_item** **(** :ref:`int` id **)** Create a new item in the library, supplied an id. .. _class_MeshLibrary_set_item_name: - void **set_item_name** **(** :ref:`int` id, :ref:`String` name **)** Set the name of the item. .. _class_MeshLibrary_set_item_mesh: - void **set_item_mesh** **(** :ref:`int` id, :ref:`Mesh` mesh **)** Set the mesh of the item. .. _class_MeshLibrary_set_item_shape: - void **set_item_shape** **(** :ref:`int` id, :ref:`Shape` shape **)** .. _class_MeshLibrary_get_item_name: - :ref:`String` **get_item_name** **(** :ref:`int` id **)** const Return the name of the item. .. _class_MeshLibrary_get_item_mesh: - :ref:`Mesh` **get_item_mesh** **(** :ref:`int` id **)** const Return the mesh of the item. .. _class_MeshLibrary_get_item_shape: - :ref:`Shape` **get_item_shape** **(** :ref:`int` id **)** const .. _class_MeshLibrary_remove_item: - void **remove_item** **(** :ref:`int` id **)** Remove the item. .. _class_MeshLibrary_clear: - void **clear** **(** **)** Clear the library. .. _class_MeshLibrary_get_item_list: - :ref:`IntArray` **get_item_list** **(** **)** const Return the list of items. .. _class_MeshLibrary_get_last_unused_item_id: - :ref:`int` **get_last_unused_item_id** **(** **)** const Get an unused id for a new item.