remove redundant local variables from blueprints

hi

see there is a option to remove variables not used from blueprints
is there a way to seamlessly remove local variables no longer used from a function

thanks

There is this option:

However, in UE4 it didn’t check references OUTSIDE of this blueprint so it could really mess up your bps if you reference variables directly from outside. Don’t know the current state in UE5, I don’t use it.

1 Like

yes i know about that option and was referring to it
but it does not delete local variables
or at least not in my case

using 5.3

Oh ok, didn’t catch that. I checked and indeed, it ignores local variables. I’m not familiar with any other tool to do it, sorry!

1 Like