fgui_duplicate_object
Duplicate an unlocked, ungrouped FairyGUI object with preserved properties, resources, and gear/relation data, generating a new ID and optional coordinate offset.
Instructions
原生复制一个根组件下未锁定、未分组的普通对象(0.8.24+)。
保留序列化属性、资源引用、Relation/Gear/扩展覆盖,生成新 ID,追加到末尾。 dx/dy 是相对源坐标偏移,默认原位;几何向零截断并返回 rounded。 不支持组或组成员,不进 Agent 撤销栈。save 保存整个当前文档; external_reload 需 save=True,并验证副本序列化内容和显示列表。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fgui_duplicate_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| name | No | ||
| save | No | ||
| verify | No | ||
| object_id | No | ||
| object_name | No | ||
| object_path | No | ||
| external_reload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||