Instanced Skinned Mesh Component Blueprint GetCustomData node returns empty array.

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

  1. Set NumCustomDataFloats to 1 on ISKM component;
  2. Call SetCustomData or SetCustomDataValue on any freshly added ISKM instance;
  3. Returns true;
  4. Get said added ISKM instance, call GetCustomData on it;
  5. Returns true;
  6. 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.