How to change Custom Structures Array in TMap?

I was make Custom Structure Array for Actor Grouping.
Then put that structure in the TMap Value for Search.
I intended this to allow me to quickly search for Actor groups based on key.
Problem is, I can’t assign value in Structure Array.
I have tried it several way to assign values, but structure length is always 0.
What is correct way assign Structure Array values in TMap?

1 Like

maybe your problem is here.

you trying to set by ref a copy…must have diamonds (refs) on both ends to work.

What if after the Add node you use the Make node to create the updated structure and then use the Set Members in struct to assign the updated structure back into the TMap?

-Find to get the current structure
-Break to access the array inside
-Add to the array
-Make to create a new structure with the updated array
-Set Members in Struct to update the structure in the TMap

That was the Problem.
Since it was referencing a copy, only empty values were added.
The update was successful when I copied the contents of Find into a Local Variable.
Set Members was not necessary.
Thank you for your help!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.