A form of this idea is used in the Find and Replace tool.
[NickW] Should perform a search in children, at least warn if this will break children.
—
Delete Unused Variables deletes variables used in Child Blueprints.
Note:
Not only child blueprints. If a blueprint contains a reference to a variable from another blueprint, using Delete Unused Variables in the referenced blueprint will break compile for the blueprint containing the reference.
1. Open any project
2. Create a new Actor Blueprint
3. Add a new variable
4. Create a child BP of the previously created class
5. Get the variable from the parent BP
6. In the parent BP, Edit > Delete Unused Variables
7. Compile
Results:
All variables that are not used in the Parent BP graph are deleted, including the variable that IS used by the Child BP. This causes the Child BP to fail to compile.
Head over to the existing Questions & Answers thread and let us know what's up.