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.

ความคิดเห็น •

  • @maegneragency2501
    @maegneragency2501 7 หลายเดือนก่อน +2

    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

    • @UnrealDevHub
      @UnrealDevHub  7 หลายเดือนก่อน

      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.

  • @BanXxX69
    @BanXxX69 5 หลายเดือนก่อน

    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?

  • @cincyswimmer513
    @cincyswimmer513 หลายเดือนก่อน +1

    very informative

    • @UnrealDevHub
      @UnrealDevHub  หลายเดือนก่อน +1

      Glad you enjoyed the video!