How can I export and save CSV from Blueprint?

Hi,

I have a Blueprint class that stores the history of player’s location to a list of Vector.
I want to export and save that data into a CSV file or something.
Is there a way to do that?

Hey @ar_nobe!

You can export data tables to CSV. Check out this UE4 non-Epic example on how to do so:

I hope the above is the solution you need!

I don’t think that would work for OP. Not only do they need it run-time, but also writing to the DT in BP is a no-no.


@ar_nobe You’ll need a plugin - either Rama’s Victory (comes in UE4/5 flavours) - you could parse the vector array to string, insert commas turning it into *.csv. You could then file IO save string array.

Or search the Marketplace for file ops plugin alternatives.

3 Likes

Thanks @Quetzalcodename @Everynone !

Thanks to @Everynone 's solution, I managed to export array of Vectors into a csv file!

Here is the whole Blueprint for those who face a similar problem in the future:

(though I could have processed array elements inplace instead of using tmp array… not really familiar with BP)

4 Likes

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