Hey ,
Sorry for this long xD, was having a holiday. Thanks for your code! I compared mine and yours and I finally found this part: UFUNCTION, I didn’t add this with my pawn class selected function.
UFUNCTION()
void selected();
And when I add it, it worked.
Great! Finally!
But, this gives me several question here, the first is why? What’s the mechanic behind that the UFUNCTION identifier is necessary here?
The second question is if I don’t add UFUNCTION identifier, it will still work if it is called by a blueprint controller(not work if it’s called by a C++ controller). Do you have any idea what’s the magic of blueprint here?
Anyway, thanks bro!