data registery + debug

This commit is contained in:
Arnaud Jamin
2023-10-07 02:22:45 -04:00
parent 3e6288c955
commit 02b402023a
3 changed files with 28 additions and 1 deletions
+6
View File
@@ -4,3 +4,9 @@ ProjectName=Third Person Game Template
[/Script/GameplayAbilities.AbilitySystemGlobals]
AbilitySystemGlobalsClassName=/Script/CogSample.CogSampleAbilitySystemGlobals
[/Script/DataRegistry.DataRegistrySettings]
+DirectoriesToScan=(Path="/Game/Core/Debug/")
bInitializeAllLoadedRegistries=False
bIgnoreMissingCookedAssetRegistryData=False
@@ -30,20 +30,29 @@ void UCogInputWindow_Actions::RenderContent()
{
Super::RenderContent();
if (ActionsAsset == nullptr || ActionsAsset->MappingContext == nullptr)
if (ActionsAsset == nullptr)
{
ImGui::Text("No Actions Asset");
return;
}
if (ActionsAsset->MappingContext == nullptr)
{
ImGui::Text("No MappingContext");
return;
}
ULocalPlayer* LocalPlayer = GetWorld()->GetFirstLocalPlayerFromController();
if (LocalPlayer == nullptr)
{
ImGui::Text("No Local Player");
return;
}
UEnhancedInputLocalPlayerSubsystem* EnhancedInputSubsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(LocalPlayer);
if (EnhancedInputSubsystem == nullptr)
{
ImGui::Text("No Enhanced Input Subsystem");
return;
}
@@ -172,24 +172,28 @@ void UCogInputWindow_Gamepad::RenderContent()
if (GetWorld() == nullptr)
{
ImGui::Text("No World");
return;
}
ULocalPlayer* LocalPlayer = GetWorld()->GetFirstLocalPlayerFromController();
if (LocalPlayer == nullptr)
{
ImGui::Text("No Local Player");
return;
}
UEnhancedInputLocalPlayerSubsystem* EnhancedInputSubsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(LocalPlayer);
if (EnhancedInputSubsystem == nullptr)
{
ImGui::Text("No Enhanced Input Subsystem");
return;
}
Input = EnhancedInputSubsystem->GetPlayerInput();
if (Input == nullptr)
{
ImGui::Text("No Player Input");
return;
}
@@ -233,6 +237,14 @@ void UCogInputWindow_Gamepad::RenderContent()
}
}
}
else
{
ImGui::Text("No Actions in Action Asset");
}
}
else
{
ImGui::Text("No Action Asset");
}
const float AspectRatio = 0.55f;