Files
UnrealEngineUWP/Engine/Source/Runtime/FieldNotification/Public/FieldNotificationHelpers.h
marc audy 6381600309 Move UMG/FieldNotification files to the FieldNotification module.
#jira UE-130880
#rb yohann.dossantos
#preflight 64259ab69834526476306f92, 642aee5a6a37fb35e9ba9926

[CL 24905939 by marc audy in ue5-main branch]
2023-04-03 22:29:35 -04:00

20 lines
508 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Class.h"
namespace UE::FieldNotification::Helpers
{
UE_NODISCARD FORCEINLINE bool IsValidAsField(const UFunction* InFunction)
{
return InFunction != nullptr
&& !InFunction->HasAnyFunctionFlags(FUNC_Net | FUNC_Event)
&& InFunction->HasAllFunctionFlags(FUNC_BlueprintCallable | FUNC_Const)
&& InFunction->NumParms == 1
&& InFunction->GetReturnProperty() != nullptr;
}
} //namespace