Can´t override functions on an AnimInstance Script

Hello, when i try to create a constructor or a function for my Script AnimInstance following this video: https://www.youtube.com/watch?v=pHeuhYrSqY0&ab_channel=Unreal4Pro. An error pops up.

The problem im having is that when im trying to define the body of the function in the .cpp file it says: “The function already has a body”.

I tried to regenerate the files, and now i also have some errors in the files ArchiveProxi.h and String View.

The errors are:

E0070|field has incomplete type ->StringView.h|415|||
E0070|field has incomplete type ->StringView.h|408|||

E1455| member function declared with ‘override’ does not override a base class member->ArchiveProxy.h|167|||

While String View and ArchiveProxy are still showing up, i managed to get the script working. Turns out in another script instead of importing the header i imported de .cpp.

If you are getting the error “the function already has a body” while the .cpp is blank, try to search in all your scripts if you imported the .cpp.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.