Add target acquisition in the sample

This commit is contained in:
Arnaud Jamin
2023-10-06 02:27:00 -04:00
parent 25f2e06400
commit 92396410d4
36 changed files with 1657 additions and 97 deletions
@@ -1,7 +1,7 @@
#include "CogDebugLogCategoryDetails.h"
#include "CogDebugLogCategory.h"
#include "CogDebugLogCategoryManager.h"
#include "CogDebugLog.h"
#include "DetailWidgetRow.h"
#include "Editor.h"
#include "IPropertyUtilities.h"
@@ -27,7 +27,7 @@ void FCogLogCategoryDetails::CustomizeHeader(TSharedRef<IPropertyHandle> StructP
PropertyOptions.Empty();
PropertyOptions.Add(MakeShareable(new FString("None")));
for (auto& Entry : FCogDebugLogCategoryManager::GetLogCategories())
for (auto& Entry : FCogDebugLog::GetLogCategories())
{
PropertyOptions.Add(MakeShareable(new FString(Entry.Value.LogCategory->GetCategoryName().ToString())));
}
@@ -247,7 +247,7 @@ TSharedPtr<FLogCategoryViewerNode> SLogCategoryListWidget::UpdatePropertyOptions
PropertyOptions.Add(InitiallySelected);
// Gather all ULogCategory classes
for (auto& Entry : FCogDebugLogCategoryManager::GetLogCategories())
for (auto& Entry : FCogDebugLog::GetLogCategories())
{
// if we have a search string and this doesn't match, don't show it
if (LogCategoryTextFilter.IsValid() && !LogCategoryTextFilter->PassesFilter(Entry.Value.LogCategory->GetCategoryName()))