What are the things to be put inside a Character class?

What are the things to be put inside a Character class?
Like in GameMode you put things like the game functionality, and other game modes related stuff.

Just remember the scope of the object - it’s a (presumed) temporary bipedal character that is derived from Pawn, which is derived from Actor. It most likely represents the player, a monster, an NPC, etc. that can be spawned, lives, and (may) eventually die. These cycles of life can change the information contained within the Character class.

For that, you don’t want long-term information stored in the Character. You do want functionality that contributes to performing functions: walk, jump, climb, die, etc. However, it really depends on your project. If you are doing it the “proper” way, you may consider a player controller or an AI controller to handle the brain parts of the action - I want to jump, I want to move, I want to chase that rabbit, etc… and pass those commands down to the controlled Character. In this way, you can reuse the Character for players and game AI.

But, the beauty of UE is that it really doesn’t matter - it’s how you want it given some basic rules. If you have one player Character and nothing else uses it and you want to control spawning, life, death and so on in that one class - go for it! Again, just remember, when you spawn that class - its starting fresh without previous data unless you build it in somehow. That’s why you have other objects like GameMode, GameInstance, etc. - each have their own scope and get “spawned” and destroyed, either once per game session or many times during it.

Hope that helps…