📘Unreal Engine/📝Unreal Engine
[Unreal Engine] C++ 블루프린트 함수 열거형 반환 핀 설정
주으기
2025. 2. 1. 20:10
728x90
반응형
UFUNCTION 매크로의 ExpandEnumAsExecs 메타데이터 지정자
함수 반환핀으로 열거형을 추가하고, ExpandEnumAsExecs로 지정해 주면, 설정한 열거형을 반환 핀으로 설정할 수 있다.
UENUM()
enum class EConfirmType : uint8
{
Yes,
No,
};
public:
UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "OutConfirmType"))
static void BP_Test(EConfirmType& OutConfirmType);
void AActionGameCharacter::BP_Test(EConfirmType& OutConfirmType)
{
OutConfirmType = EConfirmType::Yes;
}
728x90
반응형