BlueprintAutocast meta specifier not working

OK I solved my problem. I can now connect FCoordinates to FStrings and get it working generating inbetween nodes properly.

Posting in hoping this will help someone in the future.

Found a snipit in. EdGraphSchema_K2.cpp


static bool IsAutocastFunction(const UFunction* Function)
    {
        const FName BlueprintAutocast(TEXT("BlueprintAutocast"));
        return Function
            && Function->HasMetaData(BlueprintAutocast)
            && Function->HasAllFunctionFlags(FUNC_Static | FUNC_Native | FUNC_Public | FUNC_BlueprintPure)
            && Function->GetReturnProperty()
            && GetFirstInputProperty(Function);
    }

So my issue was that my function wasn’t made public.

Here is the alteration.
notice I added the “public:” scope identifier.


UCLASS()
class GAME_API UCoordinateStatics : public UBlueprintFunctionLibrary
{
    GENERATED_BODY()
public:
    /** Converts a Coordinate value to a string */
    UFUNCTION(BlueprintPure, meta = (DisplayName = "ToString (Coordinate)", CompactNodeTitle = "->", BlueprintAutocast), Category = "Utilities|String")
    static FString CoordinateToString(FCoordinate Coordinate);
};