fgui_set_relation
Replace an object's Relation bindings in FairyGUI Editor 0.8.8+, setting target sides and percent pairs to control layout resizing.
Instructions
整体替换对象的 Relation 绑定(0.8.8+)。relations 每项为:
{"target": {"id"/"path"/"name"} 或 null(null/缺省 = 父组件), "sidePair": "left-left,right-right" 或 "pairs": [{"source": "right", "target": "right", "percent": false}]}
sidePair 方向名:left/center/right/leftext/rightext/width(水平), top/middle/bottom/topext/bottomext/height(垂直);percent 追加 % 后缀。
external_reload=True 需 save=True,关闭重开文档后重新比对;strength 标明验证强度。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| verify | No | ||
| object_id | No | ||
| relations | Yes | ||
| object_name | No | ||
| object_path | No | ||
| external_reload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||