You can only replace the default classes for Actors that are spawned by the game mode. So, for example, Player Controller, the Default Player Pawn, Game State, etc. But not the Actor class in general! If you want to change something in the Actor Class, you will have to go into the source code of the engine and basically create a custom version of the Engine for you. Correct me if I misunderstood your question!
you explained game mode in a tremendous way. explain why force inline for getter is important FORCEINLINE USphereComponent* GetSphereCollision() const { return SphereCollision; }
So are you saying, with game mode you can overwrite default actors in Unreal?
You can only replace the default classes for Actors that are spawned by the game mode. So, for example, Player Controller, the Default Player Pawn, Game State, etc. But not the Actor class in general! If you want to change something in the Actor Class, you will have to go into the source code of the engine and basically create a custom version of the Engine for you.
Correct me if I misunderstood your question!
you explained game mode in a tremendous way.
explain why force inline for getter is important
FORCEINLINE USphereComponent* GetSphereCollision() const { return SphereCollision; }
Thanks!
And I will try to make a video about FORCEINLINE in the near future!