How to add static mesh component to array?

hello,

Im stucked at adding by hand array components in a pawn class blueprint.

As image shows, I want to put those mesh components into an array. I thought I can pick them by hand. But no clue how to do this. Is my thinking wrong ?

Hi tas,

It seems as though you’ve stumbled across a bug. In the screenshot you provided, the correct way to fix this would be to change the variable type of your array from Primitive Component to Static Mesh Component but even that isn’t working at the moment. I’ve placed a bug report in our database for this issue. For your reference, the bug number is UE-17476. In the meantime until it is fixed, you should be able to set these OnBeginPlay using the following method.

It would need to be a little more complex when setting multiple elements to multiple components, but this will set all elements to the same component at the moment.

Have a nice day,

It seems that this issue isn’t a bug and is by design. You’ll need to see these either at runtime in the way that I’ve provided or do the same thing in the Construction Script to assign them.

Hope this helps!

Thank you for quick response. I will workaround in CS as you suggested.

cheers