Adding new blueprint classes after building the game?

Found the solution here
This method works in UE5, so I switched to UE5. It’s harder to get it working in UE4 due to some missing nodes that are available in 5.

Thanks for the help.