I have the following method in my game mode class (header file):
This compiles and works fine.
Now I add the UFUNCTION macro, to call this method from BP:
This leads to the following error during compilation:
"Unrecognized type 'void' - type must be a UCLASS, USTRUCT or UENUM"
The same error occurs also when I use the inline keyword instead of the FORCEINLINE macro.
Am I missing something here?
Code:
void BadBugDied(APawn* BadBug) { BadBugs.Remove(BadBug); }
Now I add the UFUNCTION macro, to call this method from BP:
Code:
UFUNCTION(BlueprintCallable, Category = "Bad Bugs") FORCEINLINE void BadBugDied(APawn* BadBug) { BadBugs.Remove(BadBug); }
"Unrecognized type 'void' - type must be a UCLASS, USTRUCT or UENUM"
The same error occurs also when I use the inline keyword instead of the FORCEINLINE macro.
Am I missing something here?
Comment