Computed Array feature

Hi Unreal Engine Team,

I want a small feature request in unreal engine blueprints, and specially in arrays.

I made a computed array (not a stored array , that is an array that is the result of a function), I want to add to it and store of that in a variable so I can apply changes to the result array.

The reason that I made the array computed not stored , because they are components in an actor that I want to make changes to them by one code.

I know that the solution can be by making an array that holds the same type of these components, but I will explain by pictures what I need.

1

Here are the X1 , X2, X3 and X4 components.

I made a function that will give me them all like this:

Then I want to add Y to them and apply another certain function. the picture will explain more.

I know it is a small request but it can save a lot of time. :slight_smile:

Make custom macros for them in a blueprint macro library; use the compact node title to make them compact:
image


Also, you can use GetComponentsByClass/Tag to get the components. What you’re doing right now is hardcoded, which is the equivalent of storing them in an array.

1 Like

Nice . That definitely will work . Thanks for your reply.

1 Like