UFUNCTION cause missing link error
I'm trying to implement a function (in a UActorComponent) that from a string returns an array of textures.
As you may see the the function is almost all commented, because I immeditely got a compile error and I wanted to have the bare minimum to avoid confusion.
I searched the error here in the hub, but I found answers that contraddict each other. Here and here is said that the use of pointers is forbidden. Here instead is accepted an answer that propose as solution to use a pointer!
I decided to go for the second solution (I was not using pointers in the first place) and I don't get that error anymore, but I got a new one.
New method signature:
Apparently the problem is connected to TArray, because for test purpose I changed the function to return an array of FString and I got the same error.
It's important to notice that if I don't use UFUNCTION I don't get any error. I'm new to C++ (even though I'm learning it, and I know Java and C#) so probably I'm missing something here, but I really need to have this function accessible from blueprint.
asked Apr 08 '16 at 06:25 PM in C++ Programming
Your implementation is missing class name. It should be:
answered Apr 08 '16 at 07:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here