simple Actor Constructor "already has a body"- error
I am just starting with unreal c++ and already struggling. I followed these tutorials:
I like to create a simple actor, but I cant compile due to some error. What is wrong?
Warnung 1 warning C4996: TSubobjectPtr is deprecated and should no longer be used. Please use pointers instead.**
Warnung 2 warning C4996: FPostConstructInitializeProperties is deprecated and was renamed to FObjectInitializer. Please use that type instead.
Fehler 3 error C2084: Funktion 'ASimpleItem::ASimpleItem(const FObjectInitializer &)' hat bereits einen Funktionsrumpf
might be translated to : "( ... ) already has a body"
So the main issue is that your constructor seems to need to be declared explicitly in the header now. Also you will need to change the object initializer type.
EDIT : updated as per comments.
For more information see this forum post :
Follow this question
Once you sign in you will be able to subscribe for any updates here