No announcement yet.

Resize array in array (multidimensional handling)

  • Filter
  • Time
  • Show
Clear All
new posts

    Resize array in array (multidimensional handling)

    Hey, I need a help!

    I try a multi level inventory (each clothes as array), and i try make a resize in second level array, and I check the inventories[RobotVest] array's length, and result is 0.

    I quest. Can I Handling a multidimensional array in blueprint? I read a post from 2018, the BP doesn't support the array in array structures. It's real, or resolved?

    How I can make this inventory in another scripts?


    1: Inventory GUI
    2: Inventories structure ("BP tölti fel" => "Source from BP")
    3: Multi array resize (Doesn't work)
    4: Read arrays length's (All time return 0)

    Click image for larger version

Name:	001.jpg
Views:	97
Size:	29.4 KB
ID:	1681878Click image for larger version

Name:	002.jpg
Views:	103
Size:	29.4 KB
ID:	1681879Click image for larger version

Name:	003.jpg
Views:	119
Size:	39.7 KB
ID:	1681880Click image for larger version

Name:	004.jpg
Views:	120
Size:	45.7 KB
ID:	1681881
    Attached Files

    Best Regards: Zoltan Tajti

    When you get an item from a struct, it's as a copy and not as a reference. You have to copy over everything so a new struct, resize the new struct, then insert the new struct back into the array of structs at the same index.
    iTween For UE4
    Procedural pathed animation for actors, components & UMG - $0
    Runtime DataTable
    DataTables dynamically loaded from text or Google Sheets while your game is running!
    Fast, cheap, and accurate CSV parsing at runtime!