Editing value of a BP by accessing it from a Data Table


I have this Data Table made with a Struct. “Skill” is a child BP that can be changed. How can I access it and edit those values on the right node and also access it as a reference so I can call a function on that BP?

1 Like

In this state, you can’t. You need to make an instance of it, ie spawn one, or make whatever it is, to get an instance of it. Then you can actually set the values, because one exists.

If it’s a class that contains functions, then you can also call those functions.

@ClockworkOcean
Sorry for the late reply. I had to correct some things before making this BP again. I encountered some problem when I used Spawn Actor to edit some values. So when I add a value to, say, an integer (10), it doesn’t Set the value to the sum. Instead, it resets every time I Spawn the actor class. For example when adding 5, instead of getting 10 - 15 - 20, I get 15-15-15 instead.

Edit : Found the solution. Thanks
Edit 2 : Yeah, the solution I found was wrong lol

1 Like

If you expose variables on your blueprint, you can set them as you’re spawning. But, it still won’t change the default. The only way to change the default, is to edit the blueprint :slight_smile:

Ahh… so the values being spawned when using the data table are the default values?

A BP will always spawn with default values. The only thing you can do it code the BP to read rows when it spawns, and then carry on.