2024-03-25 12:54:29 +00:00

32 lines
914 B
C++

#include "StevesVisualLogger.h"
void FStevesVisualLogger::InternalPolyLogfImpl(const UObject* Object,
const FLogCategoryBase& Category,
ELogVerbosity::Type Verbosity,
const TArray<FVector>& Points,
const FColor& Color,
const uint16 Thickness)
{
#if ENABLE_VISUAL_LOG
const FName CategoryName = Category.GetCategoryName();
SCOPE_CYCLE_COUNTER(STAT_VisualLog); \
UWorld *World = nullptr; \
FVisualLogEntry *CurrentEntry = nullptr; \
if (FVisualLogger::CheckVisualLogInputInternal(Object, CategoryName, Verbosity, &World, &CurrentEntry) == false)
{
return;
}
// EVisualLoggerShapeElement::Path doesn't support a label, so description is always blank
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 4
CurrentEntry->AddPath(Points, CategoryName, Verbosity, Color, "", Thickness);
#else
CurrentEntry->AddElement(Points, CategoryName, Verbosity, Color, "", Thickness);
#endif
#endif
}