Help with compiler error with "Introduction to UE4 Programming" Tutorial
I'm following the Introduction course for UE4 programming, and have reached part 4, but when I try to compile the code I get a error C3668, havve been looking around, but the one answer I found, did not in any way explain the problem or how to fix it... at least not for me.
My set up is Windows 7 64, UE4.6.1 and I use MVSExp 2013
My code so far is:
This is my BatteryPickup Code, with the error:
This is the previous 2 files from the earlier lesson:
Not able to upload the screenshot, so here's the code for the Pickup.h file
Hope you can help me to identify the cause of the problem and rectify it.
asked Feb 10 '15 at 12:57 PM in C++ Programming
You have this error cause you cannot override non-virtual function. Also BlueprintNativeEvent means that this function is designed to be overridden by a Blueprint, but also has a native implementation. Provide a body named [FunctionName]_Implementation instead of [FunctionName]; the autogenerated code will include a thunk that calls the implementation method when necessary. You should declare you function like that:
Best regards, Gleb
Follow this question
Once you sign in you will be able to subscribe for any updates here