FFuncReflection

Why do you use InFuncName below, in cases where you already know the [UFunction](API\Runtime\CoreUObject\UObject\UFunction)? Examine/refactor this.

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilReflection.h

Include

#include "NUTUtilReflection.h"

Syntax

class FFuncReflection

Remarks

Why do you use InFuncName below, in cases where you already know the UFunction? Examine/refactor this. (though sometimes, a nullptr UFunction seems to be possible - perhaps it's for better tracking during errors) FFuncReflection - helper for quickly/concisely setting function parameters through reflection

Variables

Name Description

Public variable

UFunction *

 

Function

Reference to the function

Public variable

const TCHAR ...

 

FunctionName

The name of the function

Public variable

const FVMReflec...

 

ParmsRefl

Reflection instance, for writing the function parameters - initialize a new instance from this, e.g. FVMReflection(ParmsRefl)

Constructors

Name Description

Public function

FFuncReflection

(
    const TCHAR* InClassName,
    const TCHAR* InFuncName
)

Constructor for creating a function instance and (optionally) filling in its parameters

Public function

FFuncReflection

(
    UObject* TargetObj,
    const TCHAR* InFuncName
)

Constructor for creating a function instance and (optionally) filling in its parameters

Public function

FFuncReflection

(
    UFunction* InFunction,
    void* InParms
)

Constructor for reading (and optionally modifying) an existing functions parameters (e.g. from received RPC's)

Functions

Name Description

Public function

FORCEINLINEU...

 

GetFunc()

Public function Const

FORCEINLINEv...

 

GetParms()

Public function Const

FORCEINLINEb...

 

IsValid()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss