I m pretty new with unreal engine. At the moment i m trying to follow the tutorials from youtube about programming.
Different then tutorials when i add an actor code to my project it generates the class like :
APickup::APickup()
{
}
instead of
APickup::APickup(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
}
And also when i try to use the class reference as parameter it doesnt compile with the error "Out-of-line definition of ‘APickup’ does not match any decleration in ‘Apickup’.
I know it might be a super easy answer.If its so sorry everyone to steal your time.
On almost every version some things change on API. You can always check release notes or Rama’s transition guides for those. There is a github link on those youtube comments with full code of that tutorial proper to new version. I’m not sure it works on 4.7 or not but for that you can check 4.7 transition guide too. I’m saying that because it’s not the only thing that changes, you will encounter more problems.
Constructor parameter is ‘const FObjectInitializer &ObjectInitializer’ : Super(ObjectInitializer).
You don’t have to write class before a custom object as that’s C syntax and optional in C++.