If you use "Set Array Elem" on a vector array but leave "Item" at the default value of (0,0,0) then you'll end up using a temporary uninitialised vector instead of (0,0,0) when it's nativized.
Workaround: The current workaround is to create a (0,0,0) vector variable and plugging it into the Set Array Element node to override the default.
Result: When the project is packaged out using Nativize Blueprint Assets, the vector will instead be a temporary uninitialized vector instead of (0,0,0).
FVector bpv__Temp_struct_Variable3__pf{}; ... intervening code then first use ...
FCustomThunkTemplates::Array_Set(/out/ bpv__EnvironmentForces__pf
bpv__Temp_int_Array_Index_Variable3__pf, /out/ bpv__Temp_struct_Variable3__pf, true);
Expected: The vector would be (0,0,0)
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-33883 in the post.
0 |
Component | UE - Gameplay - Blueprint Runtime |
---|---|
Affects Versions | 4.12 |
Target Fix | 4.13 |
Created | Jul 28, 2016 |
---|---|
Resolved | Aug 11, 2016 |
Updated | Apr 27, 2018 |