์•ˆ๋…•ํ•˜์‹ญ๋‹ˆ๊นŒ?

์ปดํŒŒ์ผ๋งŒ ํ•˜๋ฉด ์—๋Ÿฌ๊ฐ€ ๋‚˜์„œ ์—ฌ์ญˆใ…ƒ์“ฐใ…ƒ๋‹ˆ๋‹ค


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);


์ง€ํ˜œ๋ฅผ ์คํž™์‡ผ