Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

MeshLibrary

Inherits: Resource < RefCounted < Object

Library of meshes.

Description

A library of meshes. Contains a list of Mesh resources, each with a name and ID. Each item can also include collision and navigation shapes. This resource is used in GridMap.

Tutorials

Methods

void

clear ( )

void

create_item ( int id )

int

find_item_by_name ( String name ) const

PackedInt32Array

get_item_list ( ) const

Mesh

get_item_mesh ( int id ) const

Transform3D

get_item_mesh_transform ( int id ) const

String

get_item_name ( int id ) const

int

get_item_navigation_layers ( int id ) const

NavigationMesh

get_item_navigation_mesh ( int id ) const

Transform3D

get_item_navigation_mesh_transform ( int id ) const