You need to post which line is giving you that error. I imagine it’s the constructor, if you’re going to use that constructor setup - you need to pass in the default argument as well when you declare the constructor
Remove the “&” from the SetID function. Should be like this. Also, as far as I know you don’t have to use the ObjectInitializer anymore. It is deprecated.
Ok, it turns out I simply wasnt creating class the right way. To create a u-object class you have to select object class as the the parent class when youare in the unreal C++ class creation user interface. I was simply selecting “none” as the parent class. this was my problem.