UFUNCTION generates errors

hi,

im trying to learn some c++ butt when i add a ufunction i get 3 errors.

when i comment out the UFUNCTION it compiles without errors.

[link text][3]

thanks in advance,

Hi,

in your Cpp file you have to add the Namespace which is in this case your class “UMyGameInstance”.

See the example below.

Header File:

public:
UFUNCTION(BlueprintCallable, Category="Functions")
void Message();

Cpp File:

void UMyGameInstance::Message() {
...
}

freakxnet

ok thanks for helping me