Developer Notes

A form of this idea is used in the Find and Replace tool.

Description

[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.

Steps to Reproduce

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.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

10
Login to Vote

Won't Fix
ComponentUE - Gameplay - Blueprint
Affects Versions4.6.14.84.134.15.34.194.23
CreatedDec 30, 2014
ResolvedAug 18, 2021
UpdatedAug 18, 2021