relink_assets
Batch relink missing bitmaps or assets by recursively searching folders for matching filenames and repointing scene paths.
Instructions
批量重新链接丢失的贴图/资源:在指定目录(可递归)中按文件名查找并替换路径。等价于 Max 的「资源追踪」批量重链接,是修复丢贴图场景最常用的操作。 [English] Batch relink missing bitmaps/assets: search the given folder (recursively) for files with matching names and repoint the scene. Equivalent to Max's Asset Tracking batch relink, and the standard fix for scenes with missing textures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | 只报告将要做的替换而不真正执行,默认否。**建议先跑一次 true 确认结果。** | Report the replacements without applying them, default false. **Run once with true first to confirm the mapping.** | |
| onlyMissing | No | 只处理已丢失的资源,默认是。 | Only relink currently missing assets, default true. | |
| searchPaths | Yes | 要搜索的根目录(可多个),会递归查找同名文件。 | Root folders to search (multiple allowed); searched recursively for files with matching names. |