I added custom C++ class with BlueprintCallable UFUNCTION. This function has a FString param and I need to choose it value from an array of allowed strings.
I tried to do it through UPARAM() keyword and GetOptions meta specifier but it doesn’t work:
UFUNCTION(BlueprintCallable)
bool IsBoneRelatedToBodyPart(FName BoneName, UPARAM(meta = (GetOptions = "AvailableOptions")) FString BodyPart);
UFUNCTION(CallInEditor)
static TArray<FString> AvailableOptions() { return { TEXT("N1"), TEXT("N2"), TEXT("N3") }; }
How to do it correctly?