mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
data registery + debug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user