์๋ ํ์ญ๋๊น?
์ปดํ์ผ๋ง ํ๋ฉด ์๋ฌ๊ฐ ๋์ ์ฌ์ญใ ์ฐใ ๋๋ค
CubePiece.h(24): error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'TCHAR'
๊ทธ๋ฆฌ๊ณ ์ด ์๋ ์ฝ๋๊ฐ 24๋ฒ์งธ์ค ๊ทธ๋์ ๋๋ค
UFUNCTION()
void AttachMesh(FVector AttachDirection, TCHAR* AssetPath);
์ ๊ฐ c++ ์ฉ์ด์ง๋ผ ์ง๋ฌธ๋๋ฆฝ๋๋คใ
์๋ํฐ์์๋ ์๋ฌด๋ฐ ์๋ฌ๋ ๋ณด์ด์ง ์๋๋ฐ ์ปดํ์ผ์ด๋ ๋น๋๋ง ํ๋ฉด ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค
#include <tchar.h>๋ฅผ ํด๋ ํด๊ฒฐ์ด ์๋๋๋ฐ ์์ ๋ฌ๋๊ฑฐ์ฃต
์ฐธ๊ณ ๋ก ์ ๋ ์๋ ์ฝ๋๋ฅผ ์ฐ๊ธฐ ์ํด TCHAR๋ฅผ ์ฌ์ฉํฉ๋๋น
static ConstructorHelpers::FObjectFinder<UStaticMesh> MeshFinder(AssetPath);
์งํ๋ฅผ ์คํ์ผ
TChar* ๋ง๊ณ FString ์ฐ์ - dc App
๊ทธ๋ฌ๊ฒ ์ธ๋ฆฌ์ผ์ ์ ๊ทธ๋ฐ๋ค์?