Problems with compiling/building project

Hello, recently a following problems started to occur in my project: If I build it from Visual Studio iwth editor not opened, a function in my character class is missing (not compiled), but if I do it with editor opened(hot reload) or compile the code from the editor, my AI properties (also added trough cpp) are missing (“Blueprint Runtime Error: Attempted to access missing property” - I use those properties mainly in BT services). I tried to clean and rebuild my project but it’s not helping. Any ideas what may cause this? I use version of UE from the launcher.