asset
Create 3D geometry parametrically, arrange along paths or in batches, undo actions, and save subtrees as prefabs. Also lists available shapes and materials.
Instructions
参数化 3D shape 生成(11 shape)+ 路径阵列 + batch + undo + save 预制件。create/path/batch/undo/save 经 editor 持久化(视口可见、可 undo);list_shapes/list_materials 静态返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | path 采样模式 | |
| name | No | 节点名(碰撞自增 _001) | |
| path | No | path: [[x,y,z],...] ≥2 点(与 path_node 互斥) | |
| align | No | path 朝向(默认 path) | |
| count | No | path discrete: 等数量(与 spacing 互斥) | |
| items | No | batch: [{shape,params,material,name,...}] ≤64 | |
| scale | No | [x,y,z] | |
| shape | No | create/path: shape 名(见 list_shapes) | |
| action | Yes | 操作类型 | |
| params | No | shape 参数(见 list_shapes 默认值) | |
| parent | No | 父节点路径(绝对 /Root/X 或相对 X/Y) | |
| spacing | No | path discrete: 等间距(与 count 互斥) | |
| material | No | 预设名 / PBR dict(color(hex),alpha,emissive,metallic,roughness)/ res://.tres / null | |
| position | No | [x,y,z] | |
| rotation | No | [x,y,z] 弧度 | |
| node_path | No | save: 要存的子树节点路径 | |
| path_node | No | path: 场景 Path3D 节点路径(与 path 互斥) | |
| project_path | No | Godot 项目目录 | |
| resource_path | No | save: res://xxx.tscn 输出路径 | |
| align_vertices | No | path continuous+spacing: 折线顶点段边界对齐 |