Summary
Just like the title says, the blueprint getter function for ISKM Custom data returns an empty array.
What Type of Bug are you experiencing?
Editor
Steps to Reproduce
- Set NumCustomDataFloats to 1 on ISKM component;
- Call SetCustomData or SetCustomDataValue on any freshly added ISKM instance;
- Returns true;
- Get said added ISKM instance, call GetCustomData on it;
- Returns true;
- The output CustomDataFloats length will always be 0 because it returns an empty array.
*Besides, forgetting to set NumCustomDataFloats (e.g. add 1 value to CustomData but forget to set Num to >0) crashes the engine.
Expected Result
GetCustomData array should return the numInstances*CustomData entries added accordingly. In any case, it shouldn’t return an empty array.
Observed Result
GetCustomData returns an empty array no matter what.
Affects Versions
5.8
Platform(s)
Windows
Upload an image
Additional Notes
Engine/Source/Runtime/Engine/Private/Components/InstancedSkinnedMeshComponent.cpp
Manually pre-sizing the array to GetNumCustomDataFloats() before calling the native TArrayView overload returns the correct data.
