forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_meshlibrary
reduz edited this page Feb 23, 2014
·
9 revisions
####Inherits: Resource ####Category: Core
Library of meshes.
- void create_item ( int id )
- void set_item_name ( int id, String name )
- void set_item_mesh ( int id, Mesh mesh )
- void set_item_shape ( int id, Shape shape )
- String get_item_name ( int id ) const
- Mesh get_item_mesh ( int id ) const
- Shape get_item_shape ( int id ) const
- void remove_item ( int id )
- void clear ( )
- IntArray get_item_list ( ) const
- int get_last_unused_item_id ( ) const
Library of meshes. Contains a list of Mesh resources, each with name and ID. Useful for GridMap or painting Terrain.
- void create_item ( int id )
Create a new item in the library, supplied an id.
Set the name of the item.
Set the mesh of the item.
Return the name of the item.
Return the mesh of the item.
- void remove_item ( int id )
Remove the item.
- void clear ( )
Clear the library.
- IntArray get_item_list ( ) const
Return the list of items.
- int get_last_unused_item_id ( ) const
Get an unused id for a new item.