Library of meshes.
Creates a new item in the library with the given ID.
You can get an unused ID from get_last_unused_item_id().
When running in the editor, returns a generated item preview (a 3D rendering in isometric perspective). When used in a running project, returns the manually-defined item preview which can be set using set_item_preview(). Returns an empty Texture2D if no preview was manually set in a running project.
Returns an item's collision shapes.
The array consists of each Shape3D followed by its Transform3D.
Sets the item's shadow casting mode to shadow_casting_setting.
Sets the item's name.
This name is shown in the editor. It can also be used to look up the item later using find_item_by_name().
Sets an item's collision shapes.
The array should consist of Shape3D objects, each followed by a Transform3D that will be applied to it. For shapes that should not have a transform, use Transform3D.IDENTITY.