MeshLibrary
Category: Core
Library of meshes.
Library of meshes. Contains a list of resources, each with name and ID. Useful for GridMap or painting Terrain.
- void clear ( )
- void create_item ( int id )
Create a new item in the library, supplied an id.
- get_item_list ( ) const
Returns the list of items.
- Mesh get_item_mesh ( id ) const
Returns the mesh of the item.
- String get_item_name ( id ) const
- NavigationMesh get_item_navmesh ( id ) const
- Texture get_item_preview ( id ) const
- Array get_item_shapes ( id ) const
Get an unused id for a new item.
- void remove_item ( int id )
Remove the item.
- void set_item_mesh ( id, Mesh mesh )
Set the mesh of the item.
- void set_item_name ( id, String name )
- void set_item_navmesh ( id, NavigationMesh navmesh )
- void set_item_preview ( id, Texture texture )
- void set_item_shapes ( id, Array shapes )