Newbie UE5 Q: Where do I put Functions/Variables to make them useable in all actors?

Basically I’ve made a hexagonal grid generator, and I want to be able to access some of the variables/functions I’ve built for that in a whole bunch of other actors. Currently these things are stored in the grid actor itself.

I tried copying them into the player controller and the game mode blueprint and they still don’t show up when I need to call them in another actor. I also noticed that if I copy/paste a variable, any changes I make won’t be applied to copies elsewhere. I need one source location where I can store variables and call them from wherever. I feel like I’m missing something obvious but idk what I’m doing yet. Any help would be much appreciated!

You could create BlueprintFunctionLibrary.
image

Also, you can create a parent class and put the necessary functions and variables in it. Then create child classes and use the parent’s functions and variables in each child blueprint.
image

My Products

1 Like

Function library seems to be exactly what I need! Ty