[Suggestion] Two Useful Array Functions

When working with arrays, there is two very common actions that I find myself (and other people in many videos I have watched) doing. It would be great if there was a couple of extra blueprint nodes specifically for these two cases.

1. Array Upper Bound

At the moment, if you want to get the upper bound of an array you have to get its Length and then use an “integer - integer” to subtract 1 from it. Can we have a “UBound” or “Upper Bound” node that you can pull off an array pin.

1. Random Object in Array

Any time you want to pick a random index/object from an array, you have to use “Random Integer in Range” along with the above mentioned Length and “integer - integer” nodes. Can we just have a “Random Object in Array” node that does all this for you. It should just take an array as input and have two output pins, one for the randomly selected index and the other for the object (so you don’t have to then do a Get off the index).

Post feature requests in feedback forums

Hello wilberolive,

Thank you for your suggestions. I have gone ahead and entered a feature request for Array Upper Bound and Random Object in Array nodes. While these requests are not guarantees of implementation, they will be considered by the developers. In the meantime, you could either implement these nodes yourself in a game project through code, or create a plugin so that these nodes could be used in any project. If you’re not strong in code, you could just create functions that would perform these actions. However, this would only be usable in the project that they were created in. Hope that helps.

Have a great day,

Sean Flint