- Export Excel data to *.csv file
- Create a Struct base on the data in the file
- Create a DataTable using the above-mentioned struct (drag-drop the *.csv file into the Content Browser -> choose struct)
If every object has its own component, you can populate the widget with text in the construction script. If you use only one component for all objects, you'll need to read the DataTable on the go. Pick you poison.
One way or another, each interactive object should have a unique name variable, ideally corresponding to the entry in the Excel sheet/csv. When you trigger the object interaction, use the unique name variable to fetch the entry from the DataTable and feed it to the hungry widget (pretty much the same as in the construction script), and show it.
Leave a comment: