is there a way to convert/move struct or any other kind of blueprint to be a c++ code?
You can create code in C++ that does the same thing, and then delete the blueprint version.
If you are looking for an editor button you can just press to convert blueprint to C++ for you, I’m afraid that doesn’t exist.
does that mean i need to basically recreate all of the things i have done with in blueprint to c++?
Yes, unless you are just talking about an access issue.
Why do you want to convert to C++? If it is because you just want everything to be in C++, then you have to rewrite. If it is because you just want to be able to use parts of your BP with your C++, you can use blueprint implementable events to put blueprint code into your C++.
access issue?
Are you trying to convert to C++ for performance or just because you want to use some blueprint code that you already have in one of your C++ functions?
its more of an assignment i have which basically convert/move code made with blueprint to c++
Rewrite it is then.
unlucky, ok thank you for answering
For me it helped a lot, to have C++ interfaces for everything. Even when they are implemented in Blueprints. This makes it much easier to “convert” something from blueprint to C++, because everything is already accessible.
I also like to implement stuff first in Blueprint (for faster iterations) and later reimplement it in C++ (if performance sensitive).
For you the first step should be to move every interface, enum and structure to C++, that makes everything available in C++.