unreal

Programming/C++ & Unreal

언리얼 플레이어 회전값 직접 바꾸기

UGameplayStatics::GetPlayerController(this, 0)->SetControlRotation(rideTarget->GetComponentRotation()); RideTarget의 로테이션에 플레이어 컨트롤러 화면을 바꾸는 건 이렇게 하면됨. 언리얼 인풋 컴포넌트에서 조정해서 그럼.

Programming/C++ & Unreal

언리얼 C++에서 경로로 에셋 불러오기.

LoadObject는 로드되지 않은 오브젝트를 레퍼런싱할때,FindObject는 이미 로드된 오브젝트를 레퍼런싱할때 쓰라고함. GridTexture = LoadObject(NULL, TEXT("/Engine/EngineMaterials/DefaultWhiteGrid.DefaultWhiteGrid"), NULL, LOAD_None, NULL); 이런식으로 하면되는듯 /Game/Sprite/Crosshair/Item_Sprite 경로는 대충이럼.Game = Content라고 생각하면될듯 const ConstructorHelpers::FObjectFinderSM_Body(TEXT("/Game/P38/SM_P38Body.SM_P38Body"));이런식으로 할수도있뜸 경로는 콘텐츠 브라우저에서 레퍼런스 복사를 하..

Programming/C++ & Unreal

UPaperSpriteComponent 쓰기

그냥 UPaperSpriteComponent를 쓰려면 에러가 잔뜩 난다..뭔가 하고 거의 반나절을 찾아본결과..PaperSpriteComponent.h를 인클루드하고,빌드.cs에, Paper2D를 추가하면된다.네트워크등 다른것들도 이런식으로 모듈확장을 해야하는덧.

Programming/C++ & Unreal

언리얼 C++ Enum 블루프린트에서 쓰기

UENUM(BlueprintType) enum class ECrossHair : uint8 { CROSSHAIR_NoDetect UMETA(DisplayName="NoDetect"), CROSSHAIR_Item UMETA(DisplayName="Item"), CROSSHAIR_Ride UMETA(DisplayName="Ride") }; 이런식으로 클래스 헤더 위에서 선언하고 쓰면됨.

Programming/C++ & Unreal

언리얼 4.12 Visual studio 2015 Update 3 사용하기

command line argument number 261 does not match precompiled header가 뜬다면 https://forums.unrealengine.com/showthread.php?115833-Tutorial-Fix-for-the-Visual-Studio-Update-3-without-Source-Control 여기 따라하면됨!!!!!

장형이
'unreal' 태그의 글 목록