I have several cases where I created C ++ files in a project, which I would then migrate to a main project.
Or I created a Function Library in one project and would like to use it in another.
I know that I can recreate the files, then copy / paste the code, but first, I do not find this practical, and secondly, in the case of the Function Library, I would simply like to have to share it.
Change it to a unique place and keep it up-to-date in any project that uses it.
For Blueprints, I can do “Migrate”, but for a C++ file, the option is not present.
If you find yourself doing this often with a lot of code, then I’d recommend looking at using Modules. That way you can just copy the module folder into your other projects, and edit the .uproject accordingly.
Thanks, I think it’s usefull for the Function Library. It’s a list of function I May use in a lot of projects.
But When I create a project to test and work in an specific aspect of my main project, I need to use the final code in my main project after all the tests and optimisation.
May be The best method is to make a test level in my main project?