Hey guys, I am desperately trying to solve the following problem:
I have an Item Class, which has a struct object holding its properties. I want to initialize this struct object from a DataTable, which is in my Data folder. It would be no problem if I could do the initialization on runtime, but I need the defaults of that class to be initialized, so basically upon creation. If I would write it in the constructor however I would need to hardcode the address of the exact data and needed to create a new script for every single item that can be spawned. Is there an elegant way to set the defaults of an object using a DataTable?