UPROPERTY value keeps resetting on every compile

This does happen. After some research the general consensus seems to be that it won’t happen if you close the editor before compiling.

Also, if i recall, this usually happens if your c++ class is derived from object.h