TArray = type must be a UCLASS, USTRUCT or UENUM-
Hello, I've got a blueprinttype struct with various UProperty data in it. Then on the Enemy class I have:
It's worked perfectly up until upgrading to 4,17. Now it gives the following error:
I've tried including the struct header to this Enemy.h, and including it to the main Project.h. I can't figure out how to get this working again.
asked Sep 27 '17 at 10:00 PM in C++ Programming
Inside your header file, try to declare your struct then use it in a TArray like this
Note that you should leave no space inside angle brackets. You got this error becasue if i remember it right, new version demand that if you use a function that exposed to blueprint, enum have to be exposed to blueprint as well.
Follow this question
Once you sign in you will be able to subscribe for any updates here