API ReferenceGE Extensionseditor
Resource Checker Editor Tool
Comprehensive editor tool for auditing level resources: material verification, duplicate detection, unused asset scanning, and asset statistics with treemap visualization.
Comprehensive editor tool for auditing level resources: material verification, duplicate detection, unused asset scanning, and asset statistics with treemap visualization.
Overview
Large editor extension (~1840 lines) with three main tabs: Materials Verification, Resources Explorer, and Asset Stats. Delegates heavy work to background jobs via resourceUtil. Features image/shape/material preview tooltips and a squarified treemap for disk usage.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorInitialized | M.onEditorInitialized() | Registers windows and menu item. |
M.onEditorGui | M.onEditorGui() | Renders 3-tab interface + image preview + duplicate resolver. |
M.onEditorActivated | M.onEditorActivated() | No-op. |
M.onEditorDeactivated | M.onEditorDeactivated() | No-op. |
M.jobData | M.jobData(type, data) | Callback for background job results. |
M.updateDuplicateTable | M.updateDuplicateTable(data) | Updates duplicate resolver data. |
M.onWindowMenuItem | M.onWindowMenuItem() | Shows the tool window. |
Materials Verification Tab
| Button | Description |
|---|---|
| Check materials version | Finds V0 (legacy) materials |
| Verify duplicates | Detects duplicated material definitions |
| Remove pid | Removes deprecated persistent IDs |
| Convert to PNG | Exports DDS textures as PNG |
| Check texture map | Validates texture path mappings |
| Check texture files | Validates texture format and power-of-2 |
| Check missing mats | Finds materials referenced but not defined |
| Remove dummy mats | Vehicle-only: removes dummy materials |
Resources Explorer Tab
| Button | Description |
|---|---|
| Loaded TSStatics | Lists scene TSStatic meshes with sizes |
| Available ForestItems | Lists forest mesh assets |
| Loaded Terrains | Lists terrain blocks |
| Used/Unused Materials | Material usage analysis |
| Unused Meshes/Textures | Finds unreferenced assets |
| Collision Data | Collision polygon analysis |
Asset Stats Tab
- Overview: Disk usage breakdown by category (textures, meshes, terrain, audio, datablocks)
- Detailed View: Interactive file tree + squarified treemap visualization
- Stacked bar chart, per-category progress bars, scene object counts
Usage
Accessible via Window → Resources Checker in the editor.
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide