Can I create a struct in an actor component and break it in other blueprints?

The game manager creates a custom struct with integers, strings, and floats. How can I access these values in another blueprint (widget actor component) containing the health bar to set its max health?

When you say game manager, are you referring to a unique class that you’ve created, or is it the Game Mode or Game Instance? If its’ either the game mode or game instance, you do have functions available to you in Blueprints, as shown below. You would just need to cast to your specific class, and then that custom struct should be available.

image

Potentially, you will need to provide more details in order to get to the right answer, but this is the best I can do with what information was provided. I hope it helps, and good luck :slight_smile:

1 Like