Hello, I’m trying to recreate a pattern I’ve seen before, but I never saw the code behind it so I’m not sure how it was accomplished.
In a Data Asset, or possibly a BP Actor, I want to select a Blueprint Class as a variable. In this Blueprint Class I will create a generic empty function that will be fired by the BP Actor, and child classes can override this function, in order to create a library of functions or “actions” I can call. Making them BPs ensures designers can quickly create the “actions” they need without programming assistance.
But I’m not sure how to expose variables from the BP Class up to the BP Actor etc, in order to run the functions. For example if an animation sequence should be passed in, or a color, or an Actor reference.
I have definitely seen something like this in Data assets used by a team working with the Gameplay Ability System, but I’m not sure how it was achieved. Any help pointing me in the right direction would be helpful, specific implementation is flexible so long as I can allow designers to create and call the functions easily.