My project is using astronomical distances and so I have created my own c++ struct and functions for 64 bit vectors. It doesn’t seem there is a way to print int64 in blueprints. If I try to convert them long long int in C++ then try to print I get a crash. I am guessing UE4 doesn’t have standard c++ libraries that could convert long long int to strings. Is there anyway I can print these big numbers to screen.
#include “Engine/Engine.h”
if (GEngine)
{
int64 i = 45646541651312;
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Yellow, FString::Printf(TEXT("%lld"), i));
}
3 Likes
int64 x = MAX_int64;
uint64 y = MAX_uint64;;
UE_LOG(LogTemp, Warning, TEXT("%lld"), x);
UE_LOG(LogTemp, Warning, TEXT("%llu"), y);
GEngine->AddOnScreenDebugMessage(INDEX_NONE, 5.0f, FColor::Cyan, FString::Printf(TEXT("%lld"), x));
GEngine->AddOnScreenDebugMessage(INDEX_NONE, 5.0f, FColor::Cyan, FString::Printf(TEXT("%llu"), y));
3 Likes