UFUNCTION parameter parsing inconsitent

Hello j_zeitler,

In the documentation you can find this coding standard:

If you follow this there should not be any weirdness. :slight_smile:

I tend to write c++ using the “inside-out” rule. e.g. FString const& myString instead of const FString &myString. It seems UE treats those two variants differently though.

The following function

UFUNCTION(BlueprintCallable, Category = "MyLib")
    static bool GetCommandLineFlag(FString const& flag);

yields the blueprint node:

193483-fstring_const_amp_flag.png

while

UFUNCTION(BlueprintCallable, Category = "MyLib")
    static bool GetCommandLineFlag(const FString &flag);

yields:

193484-const_fstring_amp_flag.png