- git clone
https://github.com/markveligod/MenuSystemByJam.git
- Put it in the
Plugins
folder with the project (Example:YourNameProject/Plugins/MenuSystemByJam
) - ReBuild your project and Run UE Editor
- Open the browser plugin
- Enable the plugin
- Done!
To see the plugin in the content browser, you need to go to View Options
and Enable Show plugin content
. Done!
- Go to ProjectSettings->Maps&Modes->GameInstanceClass expose
BP_JamMSGameInstance
. - Create two map: Menu and Game. Put BP_JamMSGameMode on the map Menu in World Settings. On the map Game your GameMode.
- Change name map on YOUR MAP in BP_JamMSGameInstance.
- Done!
I have written simple functions for rendering any debug information on the screen. To do this, you need to inherit from the DebugHUD class and override Draw function in a AHUD class.
Example:
void AGameHUD::DrawHUD()
{
Super::DrawHUD();
if (this->GameMode && EnableDebugHUD)
{
AddText(TEXT("Test function AddText"), FText::FromString("This AddText"));
AddFloat(TEXT("Test function AddFloat"), 1.488f);
AddInt(TEXT("Test function AddInt"), 228);
AddBool(TEXT("Test function AddBool"), false);
AddBool(TEXT("Test function AddBool"), true);
}
}
©️Authors: