8,013
edits
Paradox-01 (talk | contribs) m (→Widgets: Bulk import of text) |
Paradox-01 (talk | contribs) |
||
Line 666: | Line 666: | ||
HTF do I? Import a CSV File into a Data Table ( UE4 ) | HTF do I? Import a CSV File into a Data Table ( UE4 ) | ||
* https://www.youtube.com/watch?v=nMy6H1o1zO0 | * https://www.youtube.com/watch?v=nMy6H1o1zO0 | ||
Summary: | |||
* if you need a free spreadsheet program [https://www.libreoffice.org/download/download/ you can download Calc, it is part of LibreOffice], or use Google Sheets | |||
* '''create a csv''' file with the first cell of first column (A1) being empty and the other lower cells (A2, A3, ...) to be unique in name | |||
* Calc: save file, check "edit filter settings", save csv with comma as field delimiter | |||
* in ue4 goto "Add New" > Blueprints > '''Structure''' | |||
* open that ''Struct'' and add for all columns (except for A) a variables, assign a type for each of it | |||
* be sure Struct's variables have the same name as the csv column headers | |||
* import the csv and assign the Struc to it | |||
* data tabes can be updated by reimporting the csv | |||
Example: | |||
for now diary (DPge) will have this structure | |||
* levelNumber = Integer | |||
* pageNumber = Integer | |||
* isLearnedMove = Integer | |||
* caption = String | |||
* image = Texture 2D | |||
* diaryText = String | |||
Stuff that might be useful later... | Stuff that might be useful later... | ||
Line 673: | Line 695: | ||
Importing data tables is cool but unfortunately I haven't see a way to create text and image fields programmatically to the editor. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 22:52, 11 February 2018 (CET) | Importing data tables is cool but unfortunately I haven't see a way to create text and image fields programmatically to the editor. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 22:52, 11 February 2018 (CET) | ||
Then again maybe this will do: https://www.youtube.com/watch?v=e8MPDnVX1h4 | |||
If not I will try to just use one text field for diaryText, etc. | |||
====Animations==== | ====Animations==== |
edits