How to get variables values from an Actor Class

Hello!

I created a master Blueprint for spell. Theses spells have the same variables with a different value each. Each spell is a blueprint instance of the Spell Master Blueprint. I am trying to get the value of a spell but I can’t seem to see the variables of that spell (actor class). I have read that you can get variables value of a blueprint when it spawn but in my case I need to get the variables before I spawn the spell. Would any of you how I could do that in a Blueprint and without C++?

Thanks in advance for the help I really appreciate it! :slight_smile:

I just added an image. I tried the Get Class Default. It works on the left with the master blueprint but I dont get the same result with a blueprint child on the right. I dont understand why since its a child of the one on the left.
Also I tried to create a Structure with the spell master inside. I break that structure and connect the Spell Master output but I dont get the same values like in the image. Would any of you know what I may of done wrong?

Where are you trying to access the variables from? And also since you want the variables before the actual spell is spawned, when are you trying to access them?

I am trying to get the variables from my Character blueprint.
I am trying to access the spell variable from the construction script of my character.

Ok, I think I have found the solution. All I had to do was put the Child class inside a function that take the class, cast it to its parent (in my case it is Spell Master), take the result from the cast to the Get Class Default. I then had access to my variables for taht child Blueprint.

I presume you can also use this method inside a hit event of a projectile.

Hope this can help others :slight_smile: