fgui_replace_object_resource
Replace image references for Image/Loader objects in FairyGUI, with optional save and XML verification. Button states not supported.
Instructions
通过 Editor API 替换 Image/Loader 图片引用;保存后默认比对磁盘 XML。Button 状态暂不支持。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_url": "<resource_url>"
},
"name": "fgui_replace_object_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| state | No | ||
| verify | No | ||
| object_id | No | ||
| object_name | No | ||
| object_path | No | ||
| resource_url | Yes | ||
| expected_type | No | image |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||