Replace Or Remove Child Materials
Menu Path: GameObject > LogicCuteGuy > Replace Or Remove Child Materials
A utility for mass-managing material assignments deep within a hierarchy. It allows you to target a specific material and either replace it with another or remove its slot entirely.
Features
- Replace Mode: Swap all instances of
Material AwithMaterial B. - Remove Mode: Completely remove the material slot if it contains
Material A, shrinking the materials list. - Hierarchical Depth: Scans every child object and every material slot in every MeshRenderer.
- Selective Cleanup: Set replacement to
Noneto clear a specific slot while keeping the slot count the same.
How to Use
- Select one or more Parent objects.
- Assign the Target Material you want to change.
- Choose the Action (Replace or Remove).
- Click Apply To Selected.
[!NOTE] This tool correctly marks scenes as dirty and uses the Undo system, making it safe for use in large production scenes.