#정의
ArenaBattle.h
-----------------------------------------------------------
#pragma once
#include "EngineMinimal.h"
DECLARE_LOG_CATEGORY_EXTERN(ArenaBattle, Log, All);
-----------------------------------------------------------
ArenaBattle.cpp
-----------------------------------------------------------
#include "ArenaBattle.h"
#include "Modules/ModuleManager.h"
DEFINE_LOG_CATEGORY(ArenaBattle);
-----------------------------------------------------------
#사용 예
Fountain.cpp
-----------------------------------------------------------
UE_LOG(ArenaBattle, Warning, TEXT("Test"));
-----------------------------------------------------------
#정의
ArenaBattle.h
-----------------------------------------------------------
#pragma once
#include "EngineMinimal.h"
DECLARE_LOG_CATEGORY_EXTERN(ArenaBattle, Log, All);
#define ABLOG_CALLINFO (FString(__FUNCTION__) + TEXT("(") \
+ FString::FromInt(__LINE__) + TEXT(")"))
#define ABLOG_S(Verbosity) UE_LOG(ArenaBattle, Verbosity, TEXT("%s"), *ABLOG_CALLINFO)
#define ABLOG(Verbosity, Format, ...) UE_LOG(ArenaBattle, Verbosity, \
TEXT("%s%s"), *ABLOG_CALLINFO, *FString::Printf(Format, ##__VA_ARGS__))
-----------------------------------------------------------
#사용 예
Fountain.cpp
-----------------------------------------------------------
ABLOG_S(Warning);
ABLOG(Warning, TEXT("Test"));
-----------------------------------------------------------
'Tutorial > ArenaBattle' 카테고리의 다른 글
ArenaBattle - (5) Ini 설정 (0) | 2020.03.14 |
---|---|
ArenaBattle - (4) 새로운 모듈 추가 (0) | 2020.03.14 |
ArenaBattle - (3) Blackboard & BehaviorTree (0) | 2020.03.13 |
ArenaBattle - (2) AnimInstance 세팅 (0) | 2020.03.08 |
WRITTEN BY
- KeithHong
개인 기록 공간입니다. 잘못된 정보에 대한 수정 및 조언은 항상 감사합니다 ( _ _ )
,