Variables accessible in both editor & in game?

How would I got about to make a variable that I can access in both the editor, as well as in game?

I’ve got a situation where I need to two players to have different colors, and I want these variables accessible in the editor, due to some dynamic materials setting their colors (in BP constructors) to these player colors.

I sort of solved this by making a struct that hold my variables, and noting that I should never change the struct inside the BP’s the use it.