UFUNCTION with template type does not compile
I get the error "Unrecognized type 'template' - type must be a UCLASS, USTRUCT or UENUM" when I attempt to use a template type on my UFUNCTION.
This is the function:
It compiles correctly if I remove the UFUNCTION macro, but I was trying to test if I can circumvent a bug that I get with arrays in blueprint by using C++, so I need to keep that part.
I read something about using the Header Tool to circumvent a similar issue, but I actually do not know how to use it and cannot find any instructions online.
I did some research and found in the past Epic said that UFUNCTION() does not support the template type.
Here is a workaround for using wildcard pins. This sounds like circumventing the header tool that you were referring to:
Also, it looks like you are able to use the template type without UFUNCTION in C++ (not blueprints):
answered Dec 28 '16 at 06:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here