I am clicking “build” on the project solution after changing DamageType.h… I believe DamageType.h is a core Unreal Engine class, so I have also gone through the motions of deleting the intermediates, vs, backup, saved, folders and regenerating the visual studio project files. Then building “clean” in the new solution in VS 2022.
Am I missing an obvious step there?^
Otherwise yes you are right I could make a new class for this, but it felt like a simple solution to just add a variable to the existing class.