good day everyone, I’m just starting to learn the engine, I used to write on Unity and now I’m switching to this engine.
I’m interested in the basic structure of the code, that is, for example, I need to make a base class that will manage the rest, for example, such a structure
Unreal has a different structure. It’s a bit more rigid than unity’s
You can use AGameModeBase as the base class that defines your game
Use APlayerController to posses pawns and give them commands (via enhanced input bindings).
The equivalent to start would be the CDO or BeginPlay (commands that require the world context like spawning actors should be in begin play)
There is not exact one to one of update. Closest would be the event tick or async physics tick for physics update.
I’d suggest reading over the gameplay framework documentation for more insights.
Don’t forget that you can create template games in the engine with a c++ version of them (3rd person, fps, simulation etc) They can give you a look into best practices.