How do i make this function output a pin by reference in Blueprints.
I need to get the Struct in blueprints, and change it.
So that means the struct must be returned by reference (diamond pin).
Instead so far all i get is circle pin, or the pin showing in the left side.
UFUNCTION(BlueprintCallable)
FCharacterStruct& GetCharacter2(const FGuid& ID) {
return CharactersMap.FindChecked(ID);
}
Also tried:
UFUNCTION(BlueprintCallable)
void GetCharacter2(const FGuid& ID, FCharacterStruct& OutCharacter)
{
OutCharacter = CharactersMap.FindChecked(ID);
}
And:
UFUNCTION(BlueprintCallable)
void GetCharacter2(const FGuid& ID, UPARAM(ref, meta = (OutParm)) FCharacterStruct& OutCharacter)
{
OutCharacter = CharactersMap.FindChecked(ID);
}

