언리얼4 블루프린트에서 short 그리고 uint64 같은 바이트를 지원하지 않는데
short 이야 int 로 친다 하더래도, 8바이트 짜리는?? -> 이건 Fstring 으로 변환해 사용한다
Unreal Engine 4 - Converting uint64_t to FString
http://blog.vkarlsson.com/
In our current Game Jam we wanted BIG numbers for our score, so to make sure that the code can handle BIG numbers I wanted to implement the score as a unsigned long long int.
Unreal Engine 4 doesn’t support uint64_t to be converted into FString by default so I had to find a solution.
The solution was a combination of C++ string-stream strings and of course FString.
Below is the conversion code:
FString AGameHUD::GetScore() { std::ostringstream ss; std::string s; s = (ss << Score).str(); FString f(s.c_str()); return f; }
반응형
'게임엔진(GameEngine) > Unreal4' 카테고리의 다른 글
String 과 FString 변환, String Conversions: FString to FName, FString to Int32, Float to FString (0) | 2016.07.12 |
---|---|
c++에서 구조체를 블루프린트로 나타내기, 핀 분할, 재결합까지 표현 (0) | 2016.07.08 |
C++에서 블루프린트 함수 호출하기 .2 인자와 같이 넘기기 (0) | 2016.07.08 |
C++에서 블루프린트 함수 호출하기 .1 (0) | 2016.07.08 |
c++ 에서 블루프린트 이벤트 호출하기 (0) | 2016.07.08 |