Fix Cloned Component References
Menu Path: Right-click Component > LogicCuteGuy > Open Fix Cloned Component References...
A sophisticated tool for fixing "Broken" or "Cross-Hierarchy" references that occur after duplicating a complex system. It re-connects variables to the correct objects within the new clone.
Features
- Matching Logic:
- Hierarchy Path: Matches objects by their relative position in the hierarchy (e.g.,
Arm/Handin the old group maps toArm/Handin the new group). - Name & Type: Matches by name and component type.
- Name Only: Matches based on object name regardless of location.
- Hierarchy Path: Matches objects by their relative position in the hierarchy (e.g.,
- Reference Analysis: Supports remapping GameObjects, Transforms, and specific Component types.
- Dry Run Mode: Preview the changes without writing any data to ensure the mapping logic is correct.
- Smart Remapping: Handles cases where multiple components of the same type exist by matching their relative order.
How to Use
- Duplicate a complex object (e.g., a Character Prefab).
- Select the Cloned Root.
- Open the tool and set the Source Root (the original object) for path matching.
- Click Remap References.
[!IMPORTANT] This tool is a lifesaver for complex UI systems or characters where many internal scripts reference each other. It prevents the need to manually re-drag dozens of references.