Open Spectre-Cular opened 1 month ago
It turns out that all arrays in BP will be treated as a CPF_OutParm
. No matter how you set it up in the editor (if you can even change it)
As a result, the address is found inside FFrame::OutParms
(which is a linked list) instead of the Locals
. You can iterate over it with Out->NextOutParm
and, in theory the address should locate in one of the Out->PropAddr
. In your case, I think it should be the first one.
Branch or Release UE4SS - v3.0.1 Beta #0 - Git SHA #666b477 UE4SS Build Configuration: GameShippingWin64 (MSVC)
Game and Engine Version Palworld Dedicated Server build #14342103 Palworld v0.2.4.0 UE 5.2.1
Describe the bug When trying to use reflection to grab the data from a TArray function parameter,
Num()
returns 0 elementsMods directory ArrayBug.zip
To Reproduce Steps to reproduce the behavior:
Compile a C++ mod with the following:
Compile and package a BP mod with the following:![img](https://i.imgur.com/K9amKIE.png)
In UE4SS debugging tools console, you can see
Iterating TArray of Length 0
and no actual elements are printedExpected behavior Console should print
Iterating TArray of Length 4
followed byElem1
,Elem2
,Elem3
andElem4
Desktop (please complete the following information):
Additional context Original Discord conversation