fgui_verify_document
Verify FairyGUI document attributes by comparing expected properties against disk XML without saving. Supports single-target and tree comparisons, returns snapshots; refuses if unsaved changes exist.
Instructions
只读验证 target 的 expected 属性;默认比对磁盘 XML,不保存。无 expected 时仅返回快照。
expected 为纯属性对象时比对单个 target(必须提供 object_id/object_path/object_name)。expected 含 children 时执行对象树比对,可省略 target(默认根组件):每个节点用 id/name/type 断言或定位,children 为子节点 spec 数组;childrenMode 默认 "exact"(按位置全等,数量必须一致),"subset" 表示每个 spec 按 id/name/index 定位一个子节点、允许多余节点。
external_reload=True 会关闭并重新打开当前文档再比对——这是只读操作仍能达到的最强持久化证明。本命令不会保存,因此文档存在未保存改动时会拒绝执行。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expected | No | ||
| read_xml | No | ||
| max_depth | No | ||
| object_id | No | ||
| object_name | No | ||
| object_path | No | ||
| external_reload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||