Reading from data tables
Now we come to the last part of creating and using a data table within Unreal Engine, and it is the most fun part of this process.
While the book mainly uses C++ in order to build Bellz, I would not only like to mention how to make use of the data from C++ code, but also I would like to show you how to use it from within a blueprint. Which means data tables are now fully supported within both systems. In the early stages of Unreal, using data tables was something for C++ users only, but things have changed now.
As you have seen in the previous section, we were only building the data structures, which here represents a form that matches the Excel sheet form, but in a form of code. In order to be able to read the data from the files, we first need to choose which file to read, and secondly, get the data from it within a loop, usually.
Reading data through C++
Now for the easiest part of code. Remember Chapter 2, Setting Up Your Warrior, when we built the player controller...