UFUNCTION(BlueprintNativeEvent, Category = “Custom Events”)
void AddUsernameToCharacter(const FText& SelectedUsername);
void AWTCPlayerState::AddUsernameToCharacter(const FText& SelectedUsername){}
I am trying to pass a string/text as a parameter, and i have been trying different combinations, but i still can’t seem to get it
overloaded member function not found
or
error LNK2001: unresolved external symbol "public: virtual void __cdecl AWTCPlayerState::AddUsernameToCharacter_Implementation(class FText const &)" (?AddUsernameToCharacter_Implementation@AWTCPlayerState@@UEAAXAEBVFText@@@Z)
error LNK2005: "public: void __cdecl AWTCPlayerState::AddUsernameToCharacter(class FText const &)" (?AddUsernameToCharacter@AWTCPlayerState@@QEAAXAEBVFText@@@Z) already defined in WTCPlayerState.cpp.obj
What is the proper way to set this up?
What exacly is going wrong?
I recreated everything in a new project and it works fine now…