캐릭터가 움직이지 않습니다.
움직이지 않는 문제는 다음과 같이 하시면 해결 하실 수 있습니다.PlayerController.h에 다음 코드 추가public: virtual void BeginPlay() override; protected: UPROPERTY(EditDefaultsOnly, Category="Input") TObjectPtr DefaultMappingContext; PlayerController.cpp 추가#include "EnhancedInputSubsystems.h" void ABPlayerController::BeginPlay() { Super::BeginPlay(); if (ULocalPlayer* LP = GetLocalPlayer()) { if (UEnhancedInputLocalPlayerSubsystem* Subsystem = LP->GetSubsystem()) { if (DefaultMappingContext) { Subsystem->AddMappingContext(DefaultMappingContext, 0); } } } }그리고 새로 만든 PlayerController C++ 클래스로 BluePrinter로 하나 만들어서 - - DefaultMappingContext에 IMC_Default로 지정 그 후 GameMode로 BP를 사용하도록 지정 하면 캐릭터가 움직이게 됩니다.static ConstructorHelpers::FClassFinder PCRef( TEXT("/Game/Blueprints/Controllers/BP_ABPlayerController.BP_ABPlayerController_C")); if (PCRef.Class) { PlayerControllerClass = PCRef.Class; }