DefaultPawn in c++

Hi @Displaynonamee,

You would include the header to MyCharacter in the Header file of your GameMode.h

Next you would set the DefaultPawnClass inside your GameMode constuctor.

AMyGameMode::AMyGameMode()
{
    // Set the default pawn class to your custom character class
    DefaultPawnClass = AMyCharacter::StaticClass();
}

Hope this helps.