SUMMARY:
Format text as csv like this (“a”,“b”,“c”) and copy it and then you can paste directly into a blueprint array.
Sometimes when copying directly from the web it might not work.
I’ve done this a few times in the past but I always forget how and can never find an example. Hopefully somebody knows what I am talking about here:
It is possible to copy either a text file or a csv file and then if you right click a string array in blueprint, you can paste it directly and it will create an index for each entry.
But I can’t figure out what sort of format the text has to be for this to work. I don’t remember it involving any special formatting IIRC.
Anybody know what I am talking about? This is not invovling a data table at all, it’s just a time-saver shortcut way to populate a string array.
So you copy the whole part with brackets, go to your array in a blueprint, select the array and in the details panel you do a right click on the top part (where you can add via + oder empty the whole array) and select paste and then you get a blank entry?
perhaps an engine bug? in the past i was using 4.26, now I am on 4.27.
I also have a few plugins installed that mess with blueprint graph, maybe that could be a thing? A bit later i may test in a blank project.
Not a huge deal, just drives me crazy that I can never remember how I did this before. In this current case I actually needed to use a data table anyway.
Test a blank project. I tested it with UE5 and UE4.27. It should work. Or try to copy it from an array to your text editor. Create some array entries and copy those, does that work?
i just retyped the same text you had sent into notepad++ and that worked. But when I copy/pasted directly it did not. Perhaps some hidden formatting gets picked up if I am copy/pasting from the web.