EM_Task/UnrealEd/Public/IPIEAuthorizer.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

27 lines
795 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Features/IModularFeature.h"
#include "CoreMinimal.h"
class UNREALED_API IPIEAuthorizer: public IModularFeature
{
public:
virtual ~IPIEAuthorizer() {}
static FName GetModularFeatureName()
{
static FName FeatureName = FName(TEXT("PIEAuthorizer"));
return FeatureName;
}
/**
* Used to gate play-in-editor functionality, where a PIE session may be
* undesirable given some external plugin's state.
*
* @param OutReason [out] A string describing why play was denied by this plugin.
* @return False to block play-in-editor from continuing, true to allow.
*/
virtual bool RequestPIEPermission(bool bIsSimulateInEditor, FString& OutReason) const = 0;
};