Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[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).

Product Version: UE 4.9
more ▼

asked Oct 01 '15 at 09:05 AM in Blueprint Scripting

avatar image

295 29 45 47

avatar image Shadowriver Oct 01 '15 at 02:16 PM

Post feature requests in feedback forums

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Oct 01 '15 at 02:21 PM

avatar image

Sean L ♦♦ STAFF
43.7k 485 152 440

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question