Quickly dialogue/story into a Text Array?

I have a story/dialogue written out in a text document that I want to import into Unreal Engine as a Text Array, with each new line corresponding to a new array element (so I can control when and how each line is begun to be read etc.)

The story is massive, and so copy and pasting it line by line into a Text Array isn’t feasible.

Ideally I want to just put the entire thing into a spreadsheet or something, run a function to have it automatically format it to be recognized by Unreal and then just copy and paste it into the Text Array to automatically populate each element.

Is this possible? With google sheets or something?

Thanks!

on the content browser, right click your asset and click “import from csv”

you can author your csv in any spreadsheet like libre office, gdocs, or ms stuff.

to know the format just right click the same asset and click export to csv.

if you think that’s too much work you could make a python script. but i think it’ll be more work.

there’s also this function Fill Data Table from CSV File.

just a quick search gave me some good results

i’ll highlight the one from M.W. since i think he’s really good.

1 Like

This should do the job. Thanks!

1 Like

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