export_mesh_library
Export MeshInstance3D nodes as a MeshLibrary .res file for GridMap tile palettes. Optionally select specific mesh items to include.
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. Errors if the scene contains no valid meshes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path relative to the project | |
| outputPath | Yes | Output path for the MeshLibrary .res file (relative to project) | |
| meshItemNames | No | Names of specific mesh items to export. Omit to export all. |