Replace all instances of a function from a function library?

Hi all.

I have a massive function library which I have used for too many things, and it drags a bunch of unnecessary stuff with it when I try to migrate any actor which calls upon it.

I want to take some of those functions and move them to new, smaller, and more specific function libraries, to improve the modularity and decrease unnecessary dependencies.

I have learned that I can copy and paste functions from one library to another – which is super neat.

But is there a clever way to update all the references as well? i.e. to quickly find all the places where the old function is called, and then replace it with the new function?

Cheers.

Jackson.

UE5.2

If I remember correctly you only need to provide the function redirect see Core Redirects in Unreal Engine | Unreal Engine 5.2 Documentation

In order to apply the redirects I believe it was sufficient to save the packages. There’s a UResavePackagesCommandlet for that see UResavePackagesCommandlet | Unreal Engine 5.2 Documentation

1 Like

“Use Find Reference on the function you want to replace and use the binocular icon in the Search Results window to search across the whole project.” – Reddit

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.