UClass::ReplaceNativeFunction

Replace a native function in the internal native function table

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h

Include

#include "UObject/Class.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp

Syntax

bool ReplaceNativeFunction
(
    FName InName,
    FNativeFuncPtr InPointer,
    bool bAddToFunctionRemapTable
)

Remarks

Replace a native function in the internal native function table

Returns

true if the function was found and replaced, false if it was not

Parameters

Parameter

Description

InName

name of the function

InPointer

pointer to the function

bAddToFunctionRemapTable

For C++ hot-reloading, UFunctions are patched in a deferred manner and this should be true For script hot-reloading, script integrations may have a many to 1 mapping of UFunction to native pointer because dispatch is shared, so the C++ remap table does not work in this case, and this should be false

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