/// <summary> /// Replace a native function in the internal native function table /// </summary> /// <param name="inName">name of the function</param> /// <param name="inPointer">pointer to the function</param> /// <param name="addToFunctionRemapTable">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</param> /// <returns>true if the function was found and replaced, false if it was not</returns> public bool ReplaceNativeFunction(FName inName, IntPtr inPointer, bool addToFunctionRemapTable) { // WITH_HOT_RELOAD if (Native_UClass.ReplaceNativeFunction == null) { return(false); } return(Native_UClass.ReplaceNativeFunction(Address, ref inName, inPointer, addToFunctionRemapTable)); }