In this video we continue with our Unreal Engine 5 Tutorials learning the basics of the cpp file structure plus Inheritance. Music: Listen Now mvrstreams.com...
Ahhh great work! Wow I herd mentions of header files for C++ but never really understood what that meant...now I do thanks; ) Will you always only have just one class in the header file with your declarations or are there situations you might have multiple? Thanks again for the solid walk through!
Happy this was helpful. You can have more than one class in the header file but for me I like to keep everything seperate and clean. Plus for Unreal they generate the header and cop files for each class so it's good to stick with that convention
i cannot find a answer to this question. Why does the actor have 2 public headers by default. cant you just collapse both methods into one public header? does it matter?
One header allows you to access all the properties / methods etc of the main class. The other generated one (if my memory serves me correct) has to do with the macros. When you add macros and then compile in the background unreal engine coverts those macros into c++ code. I haven’t touched this in a while so going off my memory.
To be honest I haven't use Eos before. But from my knowledge I think to gain maximum performance CPP is the way to go so I don't think blueprints would be useful. Anything with frequent calls, blueprints tends to be slower and anything to do with networking would have frequent calls