export_mesh_library
Export mesh instances from a Godot scene as a MeshLibrary resource for use in GridMap tile palettes. Supports selective export by item name.
Instructions
Export a scene of MeshInstance3D nodes as a MeshLibrary .res file for use in GridMap. Use this when authoring tile palettes for grid-based 3D levels; ignore for 2D or general scene work. The source scene must contain MeshInstance3D children. Pass meshItemNames to export a subset, or omit to export all. Saves the .res to outputPath, overwriting silently. Returns a plain-text confirmation with the exported item count. Errors if the scene contains no valid meshes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Scene file path relative to the project | |
| outputPath | Yes | Output path for the MeshLibrary .res file (relative to project) | |
| projectPath | Yes | Path to the Godot project directory | |
| meshItemNames | No | Names of specific mesh items to export. Omit to export all. |