add log template specialization for ftransform
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
#include "GameFramework/Actor.h"
|
#include "GameFramework/Actor.h"
|
||||||
#include "Logging/LogVerbosity.h"
|
#include "Logging/LogVerbosity.h"
|
||||||
#include "Math/Rotator.h"
|
#include "Math/Rotator.h"
|
||||||
|
#include "Math/Transform.h"
|
||||||
#include "Math/Vector.h"
|
#include "Math/Vector.h"
|
||||||
#include "Templates/UnrealTemplate.h"
|
#include "Templates/UnrealTemplate.h"
|
||||||
|
|
||||||
@@ -302,6 +303,24 @@ struct TFSGLogString<FString>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct TFSGLogString<const FTransform>
|
||||||
|
{
|
||||||
|
static void Format(const FTransform& Value, FString& OutString)
|
||||||
|
{
|
||||||
|
OutString = FString::Printf(TEXT("%s"), Value.ToString().GetCharArray().GetData());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct TFSGLogString<FTransform>
|
||||||
|
{
|
||||||
|
static void Format(const FTransform& Value, FString& OutString)
|
||||||
|
{
|
||||||
|
OutString = FString::Printf(TEXT("%s"), Value.ToString().GetCharArray().GetData());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct TFSGLogString<const FVector>
|
struct TFSGLogString<const FVector>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user