Safe Fixer & Preview System
The Fixing engine manages the resolution of issues. It is designed around the principle of “Trust but Verify”.
Preview Window
Before applying any bulk changes, the tool opens the Preview Window (MRK_PreviewWindow).
- List View: Shows exactly what object will be touched and what action will be taken (e.g., “Remove Component”, “Clear Property”).
- Confirmation: You must explicitly click CONFIRM FIX ALL to proceed.
Fix Verification
- Missing Scripts: Uses
GameObjectUtility.RemoveMonoBehavioursWithMissingScript. - Null Refs: Serializes the object and explicitly sets the property to
nullto remove the “Missing” flag.
Undo Architecture
The tool creates a dedicated Undo Group for every batch operation.
Undo.SetCurrentGroupName("Batch Fix Missing References");
// ... fix 100 objects ...
Undo.CollapseUndoOperations(group);
This ensures that a single Ctrl+Z reverts the entire batch, keeping your project safe.