How to specify game mode's HUD Class with BP_HUD on my Code Third Person project?

When I create a new project use Code Third Person project wizard, the default game mode’s HUD can not be edited(gray editbox) in project setting. And I want to use my HUD blueprint so how can I do that? In C++ code ? Help me please.

#Two Options

#Option 1

Go to world settings, click on new, next to game mode

then you can open that game mode BP and change your HUD class

#Option 2, C++

See my tutorial for player controller and do the same for your HUD instead

DefaultHUDClass = see tutorial

#Enjoy!

Rama

Thank you very much. It’s worked.