Download

Dynamic Array?

Apparently this is the easy one to implement in blueprint according to https://answers.unrealengine.com/questions/920/static-arrays-in-blueprints.html which I only skimmed.

To me its not intuitive how to set one of these up. Im coming from a Unrealscript background where I defined a dynamic array variable of type CustomClass. There I could pop items right off the top and use them then delete them. I was unable to create an array variable by clicking on the new variable button in the upper right area of the blueprint.

Its possible I am excessively befuddled as its bedtime but I don’t understand this. I don’t have access to C++, as I understand Visual basic is mandatory which is a $300 investment I think?

At any rate what I need to accomplish:
-Create an array of references that point to instances of a custom class (I can get the references themselves, I just need to stack them into an array)
-Have a reference to that dynamic array
-Be able to get the most recent array item from the array (There were a couple ‘wildcard’ labeled pins that I found on some array nodes that worry me)

If there is documentation on this Id love to read/watch it.
Thanks
-Drew

I feel like an idiot. Did just a ‘Little’ more googling. This time for Array and got some good info, naturally provided by Epic themselves.
Blueprint Arrays | Unreal Engine Documentation which links out to:
Array Nodes | Unreal Engine Documentation

Did just a little tinkering, and with the knowledge that the 3x3 block beside the dropdown of the variable type is the “Make variable into array” button, it is all suddenly intuitive.
Epic, you guys are awesome :slight_smile:

Edit - Guess I had this window open a little too long before responding. :stuck_out_tongue: