Hello all, I’m pretty new to unreal. My question is whether it is possible to get the main class file in the unreal engine game I created, the problem is that I created a whole game using blueprints and now I want to see how the objects are created, etc in the main class, is there any way of viewing this file, or generating it
There isn’t really a ‘main’ class in unreal (or at least not one that would contain anything other than core engine code). What it does have though is a series of classes for Actors, components, UMG etc (depending on what you’ve actually added to the game).
However, if I understand you correctly you’re wanting to see your blueprint code translated to C++. Unfortunatly AFAIK this is not possible. Unreal does have nativization processes with run at the packing stage but no way of actually outputting C++ files which you can read. Even if it did I’d bet that they’d be relatively unreadable by a human.
So basically if you want to convert your Blueprints to C++, you’re gonna have to do it manually.
C++ generated from Blueprint is indeed very unreadable and a bad way of learning C++. Reading the engine code or well documented code examples is much better.