Unreal Engine Blueprint & C++

2/4 Unreal Engine PlayerController

DB51 2025. 2. 5. 16:45

 

PlayerController C++ Class

새로운 C++ 클래스 생성 - 모든 클래스 - PlayerController

 

 

 

C_PlayerController.h

 

 

C_PlayerController.cpp

* 전방선언 : 식별자 정의 전, 식별자의 존재를 컴파일러에 미리 알리는 것

ex)

#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "C_PlayerController.generated.h"
class UInputAction;
class UInputMappingContext;

 

 

 

Blueprint를 C_PlayerController 기반으로 제작

 

 

 

입력 설정