在屏幕/输出窗口打印信息
FString temp;
UCanvas::Canvas->AHUD::DrawText(temp, 110.0f, 110.0f);
GEngine->AddOnScreenDebugMessage(0, 10.0f, FColor::Red, temp);
UE_LOG(LogTemp, Warning, TEXT("camera location is %s"), *temp); //星号返回C字符串
在屏幕/输出窗口打印信息
FString temp;
UCanvas::Canvas->AHUD::DrawText(temp, 110.0f, 110.0f);
GEngine->AddOnScreenDebugMessage(0, 10.0f, FColor::Red, temp);
UE_LOG(LogTemp, Warning, TEXT("camera location is %s"), *temp); //星号返回C字符串