UE5 First Steps - How do I Add Items to an Array?
ฝัง
- เผยแพร่เมื่อ 22 ธ.ค. 2024
- Want to learn more? Have a question about UE5? Leave a comment and let me know what you'd like to learn about next!
In today's video I will share a method of adding items to an array using a Blueprint Interface.
very useful for beginner like me. One question, do I need to predefine the array size? Or the array size automatically get bigger when more items are added
Adding an array element with the “Add” function automatically scales the array.
“Set Array Element” allows you to set a specific array index, and gives you a Boolean (true/false) of whether or not to scale the array size if that requested index doesn’t exist yet.
You can use “Clear Array” to reset the array index value and set the length to 0.
Very well explained, thank you so much!
Can you elaborate on how you would implement a counter to the add-unique so I have a x2 next to my Banana(-Icon) in the inventory?
very informative
Glad you enjoyed the video!