You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-130880 #rb yohann.dossantos #preflight 64259ab69834526476306f92, 642aee5a6a37fb35e9ba9926 [CL 24905939 by marc audy in ue5-main branch]
20 lines
508 B
C++
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
|