1. UCheatManager를 상속받아 클래스를 생성
2. PlayerController의 생성자에서 사용할 UCheatManager 클래스를 설정
APRPlayerController::APRPlayerController(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
CheatClass = UPRCheatManager::StaticClass();
}
3. 치트 등록
UCLASS()
class RTSTEST_API UPRCheatManager : public UCheatManager
{
GENERATED_BODY()
public:
// 유닛의 캡슐 출력
UFUNCTION(exec)
void DebugDrawUnitShape(bool inFlag);
...
4. 플레이중 ~입력후 치트 입력
'Unreal' 카테고리의 다른 글
[Unreal] Core Redirect - 데이터 테이블 필드명 수정 (0) | 2023.01.31 |
---|---|
[Unreal] 객체 획득 (0) | 2023.01.31 |
[Unreal] TScriptInterface Garbage Collection 테스트 (0) | 2023.01.27 |
[Unreal] 스크린 로그 출력 (0) | 2023.01.27 |
[Unreal] Subsystem (0) | 2023.01.27 |